]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-linux-osi-vm-flushpages-use-remote-invalidate-20090320
authorChaskiel M Grundman <cg2v@andrew.cmu.edu>
Fri, 20 Mar 2009 15:55:57 +0000 (15:55 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 20 Mar 2009 15:55:57 +0000 (15:55 +0000)
LICENSE IPL10

use invalidate_remote_inode instead of vmtruncate in osi_VM_FlushPages

(cherry picked from commit 18da64a45c5f1a069f39f687bd84ee51b77a6bd3)

src/afs/LINUX/osi_vm.c

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