]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-linux-flushpages-call-truncate-inode-pages-after-all-20090327
authorChaskiel M Grundman <cg2v@andrew.cmu.edu>
Fri, 27 Mar 2009 15:45:38 +0000 (15:45 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 27 Mar 2009 15:45:38 +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 b419ff98710f377c8afd138a5acd4d92038cb7db..c96babd6683721d7be6a24a415baca1764d7eec6 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);