NFS: Don't gratuitously clear the inode cache when lookup failed
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 8 Mar 2021 19:42:52 +0000 (14:42 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 8 Mar 2021 20:57:17 +0000 (15:57 -0500)
commit47397915ede0192235474b145ebcd81b37b03624
tree21d915db3275d499fa198b9e5f8726f09f8e8815
parent82e7ca1334ab16e2e04fafded1cab9dfcdc11b40
NFS: Don't gratuitously clear the inode cache when lookup failed

The fact that the lookup revalidation failed, does not mean that the
inode contents have changed.

Fixes: 5ceb9d7fdaaf ("NFS: Refactor nfs_lookup_revalidate()")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/dir.c