]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Linux: replace invalidate_inode_pages
authorMarc Dionne <marc.c.dionne@gmail.com>
Fri, 5 Mar 2010 22:54:42 +0000 (17:54 -0500)
committerDerrick Brashear <shadow@dementia.org>
Wed, 19 May 2010 11:06:14 +0000 (07:06 -0400)
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 <sxw@inf.ed.ac.uk>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 80481fb14ea9301b0f6b3503d07ecaef39aef0d8)
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-on: http://gerrit.openafs.org/1988

src/afs/LINUX/osi_vm.c

index de1c9ddc45ba050845d307ddd1ec1ebefc3c7bdb..5a91a4bc7d4b28f14cc4f7af0080492206d6b838 100644 (file)
@@ -74,7 +74,7 @@ osi_VM_TryToSmush(struct vcache *avc, struct AFS_UCRED *acred, int sync)
     struct inode *ip = AFSTOV(avc);
 
 #if defined(AFS_LINUX26_ENV)
-    invalidate_inode_pages(ip->i_mapping);
+    invalidate_remote_inode(ip);
 #else
     invalidate_inode_pages(ip);
 #endif