]> git.baikalelectronics.ru Git - kernel.git/commit
CIFS: Force revalidate inode when dentry is stale
authorPavel Shilovsky <piastryyy@gmail.com>
Mon, 30 Sep 2019 17:06:19 +0000 (10:06 -0700)
committerSteve French <stfrench@microsoft.com>
Wed, 9 Oct 2019 05:10:50 +0000 (00:10 -0500)
commit8da7b8c52241ddc900ee9b0e540dfcc6b2db0b7e
tree082eed52a943822ccc76ac8ab719a7dfa17da54e
parentaa2b26930c5695d231bf864a0c6301d0ba6fc936
CIFS: Force revalidate inode when dentry is stale

Currently the client indicates that a dentry is stale when inode
numbers or type types between a local inode and a remote file
don't match. If this is the case attributes is not being copied
from remote to local, so, it is already known that the local copy
has stale metadata. That's why the inode needs to be marked for
revalidation in order to tell the VFS to lookup the dentry again
before openning a file. This prevents unexpected stale errors
to be returned to the user space when openning a file.

Cc: <stable@vger.kernel.org>
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/inode.c