]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFSv4: Fix lookup revalidate of regular files
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 28 Sep 2018 16:42:51 +0000 (12:42 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Aug 2019 07:32:00 +0000 (09:32 +0200)
commitc78b265f2cdd63e41a3578c75d2c19d0b9552e3e
tree4bdc92f19fab216b56a56b44888521cbcea4d13c
parentdf047f3ea5df185b50212a462fc651a90f77f854
NFSv4: Fix lookup revalidate of regular files

commit c7944ebb9ce9461079659e9e6ec5baaf73724b3b upstream.

If we're revalidating an existing dentry in order to open a file, we need
to ensure that we check the directory has not changed before we optimise
away the lookup.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Qian Lu <luqia@amazon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/dir.c