]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: drop the lease for cached directories on rmdir or rename
authorRonnie Sahlberg <lsahlber@redhat.com>
Tue, 18 Oct 2022 07:39:10 +0000 (17:39 +1000)
committerSteve French <stfrench@microsoft.com>
Wed, 19 Oct 2022 22:57:41 +0000 (17:57 -0500)
commita5090e054f5ce8b84e5b00555d0bfcf0c0321e9c
treecddd5d8128c02ebe156070c0767a90aaf70a3baf
parent2cb68376cca7383a6498071fcfabff708c713e25
cifs: drop the lease for cached directories on rmdir or rename

When we delete or rename a directory we must also drop any cached lease we have
on the directory.

Fixes: a350d6e73f5e ("cifs: enable caching of directories for which a lease is held")
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cached_dir.c
fs/cifs/cached_dir.h
fs/cifs/smb2inode.c