From: Derrick Brashear Date: Mon, 23 Apr 2001 08:55:35 +0000 (+0000) Subject: STABLE10-linux-revert-truncate-inode-pages-for-smush-20010423 X-Git-Tag: openafs-stable-1_0_4~5 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=0b01b1840b7cb94eae51f445360515d0d86275fc;p=packages%2Fo%2Fopenafs.git STABLE10-linux-revert-truncate-inode-pages-for-smush-20010423 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