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)
committerSteve French <sfrench@localhost.localdomain>
Thu, 14 Jan 2016 19:39:11 +0000 (13:39 -0600)
commita108471b5730b52017e73b58c9f486319d2ac308
tree49d20cecb057b5354a31acd35ecd00410b71c896
parent275516cdcfa42c603c79ea42d2a7d4288d950fea
cifs: Check uniqueid for SMB2+ and return -ESTALE if necessary

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