]> git.baikalelectronics.ru Git - kernel.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)
commit3898426de135ca9a7fe5ae1c2821e4bb23abf0ba
treecc5b2fcab8b99c2d2c20a29f47e4fbd7d79b9eb5
parent4149d7738e3e76320d6036d5898d326c78ececf2
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