]> git.ipfire.org Git - thirdparty/linux.git/commit
cifs: find and use the dentry for cached non-root directories also
authorRonnie Sahlberg <lsahlber@redhat.com>
Wed, 12 Oct 2022 11:13:03 +0000 (06:13 -0500)
committerSteve French <stfrench@microsoft.com>
Thu, 13 Oct 2022 14:36:39 +0000 (09:36 -0500)
commite4029e072673d8a694f660f551609dd4f9265088
treecc5b2fcab8b99c2d2c20a29f47e4fbd7d79b9eb5
parentebe98f1447bbccf8228335c62d86af02a0ed23f7
cifs: find and use the dentry for cached non-root directories also

This allows us to use cached attributes for the entries in a cached
directory for as long as a lease is held on the directory itself.
Previously we have always allowed "used cached attributes for 1 second"
but this extends this to the lifetime of the lease as well as making the
caching safer.

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cached_dir.c