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>
Sat, 6 Mar 2010 06:06:27 +0000 (22:06 -0800)
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>

src/afs/LINUX/osi_vm.c

index c33eaed..99d72c3 100644 (file)
@@ -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