From: Derrick Brashear Date: Sat, 21 Apr 2001 20:04:08 +0000 (+0000) Subject: linux-revert-truncate-inode-pages-for-smush-20010420 X-Git-Tag: openafs-stable-1_1_0~187 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=b1ede0ae41565c8d27e9bf0fbeb744bb778cae91;p=packages%2Fo%2Fopenafs.git linux-revert-truncate-inode-pages-for-smush-20010420 osi_VM_TryToSmush needs to be careful not to walk on in-use pages --- diff --git a/src/afs/LINUX/osi_vm.c b/src/afs/LINUX/osi_vm.c index 675c48eb2..73ba8561f 100644 --- a/src/afs/LINUX/osi_vm.c +++ b/src/afs/LINUX/osi_vm.c @@ -66,17 +66,7 @@ int osi_VM_FlushVCache(struct vcache *avc, int *slept) */ void osi_VM_TryToSmush(struct vcache *avc, struct AFS_UCRED *acred, int sync) { -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0) - struct inode *ip = (struct inode*)avc; - - truncate_inode_pages(&ip->i_data, 0); -#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,2,15) - struct inode *ip = (struct inode*)avc; - - truncate_inode_pages(ip, 0); -#else invalidate_inode_pages((struct inode *)avc); -#endif } /* Flush and invalidate pages, for fsync() with INVAL flag