summaryrefslogtreecommitdiffstats
path: root/fs/nfs/dir.c
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2021-10-03 01:04:59 +0200
committerTrond Myklebust <trond.myklebust@hammerspace.com>2021-10-04 02:49:07 +0200
commitb97583b26326ad559d1b1ba7dafec98712ffd834 (patch)
tree47ce7524fedcae2b3ff247b2dc66b436c3e923d4 /fs/nfs/dir.c
parentNFS: Fix dentry verifier races (diff)
downloadlinux-b97583b26326ad559d1b1ba7dafec98712ffd834.tar.xz
linux-b97583b26326ad559d1b1ba7dafec98712ffd834.zip
NFS: Do not flush the readdir cache in nfs_dentry_iput()
The original premise in commit 83672d392f7b ("NFS: Fix directory caching problem - with test case and patch.") was that readdirplus was caching attribute information and replaying it later. This is no longer the case. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/dir.c')
-rw-r--r--fs/nfs/dir.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c
index 3fafecdb2070..210c5945ac2b 100644
--- a/fs/nfs/dir.c
+++ b/fs/nfs/dir.c
@@ -1727,10 +1727,6 @@ static void nfs_drop_nlink(struct inode *inode)
*/
static void nfs_dentry_iput(struct dentry *dentry, struct inode *inode)
{
- if (S_ISDIR(inode->i_mode))
- /* drop any readdir cache as it could easily be old */
- nfs_set_cache_invalid(inode, NFS_INO_INVALID_DATA);
-
if (dentry->d_flags & DCACHE_NFSFS_RENAMED) {
nfs_complete_unlink(dentry, inode);
nfs_drop_nlink(inode);