OSDN Git Service

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)
committerSteve French <stfrench@microsoft.com>
Wed, 9 Oct 2019 05:10:50 +0000 (00:10 -0500)
commit0b3d0ef9840f7be202393ca9116b857f6f793715
tree3254e63a7496c708fb46004c542c1160e885b2f0
parentc82e5ac7fe3570a269c0929bf7899f62048e7dbc
CIFS: Force reval dentry if LOOKUP_REVAL flag is set

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>
fs/cifs/dir.c