OSDN Git Service

cifs: Check uniqueid for SMB2+ and return -ESTALE if necessary
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Wed, 2 Dec 2015 14:46:08 +0000 (14:46 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2019 20:41:04 +0000 (13:41 -0700)
commit4701063a62a69fbdef49a25e505c510040dab1bd
tree98e7758ce71e50ee063913fd3bb8f3c7eaa5d92d
parentc712daafe23b79e1d269d66b8cc47bf63a0096b2
cifs: Check uniqueid for SMB2+ and return -ESTALE if necessary

[ Upstream commit a108471b5730b52017e73b58c9f486319d2ac308 ]

Commit 7196ac113a4f ("Fix to check Unique id and FileType when client
refer file directly.") checks whether the uniqueid of an inode has
changed when getting the inode info, but only when using the UNIX
extensions. Add a similar check for SMB2+, since this can be done
without an extra network roundtrip.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/inode.c