Linux: Replace invalidate_inode_pages
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Tue, 29 Dec 2009 22:58:56 +0000 (22:58 +0000)
committerDerrick Brashear <shadow|account-1000005@unknown>
Wed, 30 Dec 2009 02:17:55 +0000 (18:17 -0800)
invalidate_inode_pages is now marked as deprecated in the kernel
headers. Use the equivalent call to invalidate_mapping_pages() which
has been available since Linux 2.5

Change-Id: I58de20e16874bb06991320b26bc6ce63685b8bb4
Reviewed-on: http://gerrit.openafs.org/1042
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

src/afs/LINUX/osi_vm.c

index c33eaed..bf3fb2d 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_mapping_pages(ip->i_mapping, 0, -1);
 }
 
 /* Flush and invalidate pages, for fsync() with INVAL flag