]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cifs: Grab a reference for the dentry of the cached directory during the lifetime...
authorRonnie Sahlberg <lsahlber@redhat.com>
Mon, 8 Mar 2021 23:07:31 +0000 (09:07 +1000)
committerSteve French <stfrench@microsoft.com>
Tue, 13 Apr 2021 04:59:12 +0000 (23:59 -0500)
commit664ecf336b095337dcc703b1a9de343679f30bae
tree0b065be92cc785855f2c0d2ff0ca1538cb2ce3a4
parenta6d2cddc9ffec8912a7b6ac8294c40fa7321d4ec
cifs: Grab a reference for the dentry of the cached directory during the lifetime of the cache

We need to hold both a reference for the root/superblock as well as the directory that we
are caching. We need to drop these references before we call kill_anon_sb().

At this point, the root and the cached dentries are always the same but this will change
once we start caching other directories as well.

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