CIFS: Force reval dentry if LOOKUP_REVAL flag is set
authorPavel Shilovsky <piastryyy@gmail.com>
Mon, 30 Sep 2019 17:06:20 +0000 (10:06 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2019 20:42:44 +0000 (13:42 -0700)
commit5736d6e32736065a3a3a58578d6d33e061c69777
treedc2309f219a5a801646ed2d4dd6f8dc21eb65abf
parent2ce48f039c6be94c3928b2351768490ca428248d
CIFS: Force reval dentry if LOOKUP_REVAL flag is set

commit 0b3d0ef9840f7be202393ca9116b857f6f793715 upstream.

Mark inode for force revalidation if LOOKUP_REVAL flag is set.
This tells the client to actually send a QueryInfo request to
the server to obtain the latest metadata in case a directory
or a file were changed remotely. Only do that if the client
doesn't have a lease for the file to avoid unneeded round
trips to the server.

Cc: <stable@vger.kernel.org>
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/dir.c