]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 19 Dec 2019 15:58:15 +0000 (15:58 +0000)
commit73524a840bd68bb0e3c45b07a7d5efbc1ccc736f
treeed9d1d59d472c4450ce1a07ac1d2ef5d8977e4fc
parent4fbe40871decdbc815900ccc95258ddce9eb5991
CIFS: Force revalidate inode when dentry is stale

commit c82e5ac7fe3570a269c0929bf7899f62048e7dbc upstream.

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.

Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/cifs/inode.c