linux-osi-vm-flushpages-use-remote-invalidate-20090320
[openafs.git] / src / afs / LINUX / osi_vm.c
index a22de82..b419ff9 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);