From: Chaskiel M Grundman Date: Fri, 27 Mar 2009 15:45:38 +0000 (+0000) Subject: DEVEL15-linux-flushpages-call-truncate-inode-pages-after-all-20090327 X-Git-Tag: openafs-devel-1_5_58~2 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=ae8f7202661d74585d53955d70a0747342d4fd91;p=packages%2Fo%2Fopenafs.git DEVEL15-linux-flushpages-call-truncate-inode-pages-after-all-20090327 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) --- diff --git a/src/afs/LINUX/osi_vm.c b/src/afs/LINUX/osi_vm.c index b419ff987..c96babd66 100644 --- a/src/afs/LINUX/osi_vm.c +++ b/src/afs/LINUX/osi_vm.c @@ -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);