From ac3904ad9b180c7417e8a8b7c752e61b680d3a0a Mon Sep 17 00:00:00 2001 From: Chaskiel M Grundman Date: Fri, 20 Mar 2009 15:55:57 +0000 Subject: [PATCH] STABLE14-linux-osi-vm-flushpages-use-remote-invalidate-20090320 LICENSE IPL10 use invalidate_remote_inode instead of vmtruncate in osi_VM_FlushPages (cherry picked from commit 18da64a45c5f1a069f39f687bd84ee51b77a6bd3) --- 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 1236f02c5..d84cde326 100644 --- a/src/afs/LINUX/osi_vm.c +++ b/src/afs/LINUX/osi_vm.c @@ -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); -- 2.39.5