]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-linux-flushpages-call-truncate-inode-pages-after-all-20090327
authorChaskiel M Grundman <cg2v@andrew.cmu.edu>
Fri, 27 Mar 2009 15:45:49 +0000 (15:45 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 27 Mar 2009 15:45:49 +0000 (15:45 +0000)
LICENSE IPL10

in this case we're discarding just the data in case it's stale, so this is
correct

(cherry picked from commit 9243308990dc93ef3f42b9d024b9b02568881468)

src/afs/LINUX/osi_vm.c

index d84cde3265fb5ecb55577895e95d594fc2ffa2d3..a08da8fafbca4d0a8969af7cf0ff79808fdc2ff0 100644 (file)
@@ -131,7 +131,9 @@ void
 osi_VM_FlushPages(struct vcache *avc, struct AFS_UCRED *credp)
 {
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
-    invalidate_remote_inode(AFSTOV(avc));
+    struct inode *ip = AFSTOV(avc);
+    
+    truncate_inode_pages(&ip->i_data, 0);
 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,2,15)
     struct inode *ip = AFSTOV(avc);