From 80481fb14ea9301b0f6b3503d07ecaef39aef0d8 Mon Sep 17 00:00:00 2001 From: Marc Dionne Date: Fri, 5 Mar 2010 17:54:42 -0500 Subject: [PATCH] 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 --- src/afs/LINUX/osi_vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afs/LINUX/osi_vm.c b/src/afs/LINUX/osi_vm.c index c33eaeda78..99d72c3728 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