From: Marc Dionne Date: Fri, 5 Mar 2010 22:54:42 +0000 (-0500) Subject: Linux: replace invalidate_inode_pages X-Git-Tag: openafs-devel-1_5_73~92 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=80481fb14ea9301b0f6b3503d07ecaef39aef0d8;p=packages%2Fo%2Fopenafs.git Linux: replace invalidate_inode_pages This helper has been deprecated for a while, and gets removed with 2.6.34. Replace it with invalidate_remote_inode, which has been around for all of 2.6's life, according to Chaskiel in RT #124377. Change-Id: I8658b454e1c997c041f654ba55d06f713ea25459 Reviewed-on: http://gerrit.openafs.org/1523 Reviewed-by: Simon Wilkinson Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/afs/LINUX/osi_vm.c b/src/afs/LINUX/osi_vm.c index c33eaeda7..99d72c372 100644 --- a/src/afs/LINUX/osi_vm.c +++ b/src/afs/LINUX/osi_vm.c @@ -67,7 +67,7 @@ osi_VM_TryToSmush(struct vcache *avc, afs_ucred_t *acred, int sync) { struct inode *ip = AFSTOV(avc); - invalidate_inode_pages(ip->i_mapping); + invalidate_remote_inode(ip); } /* Flush and invalidate pages, for fsync() with INVAL flag