diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2021-03-09 02:07:31 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2021-04-26 00:28:23 +0300 |
commit | 5e9c89d43fa6f5d458d4d0f9e22a67cc001c8da9 (patch) | |
tree | e0882caf0f8bf52942dcfcbf9e671d41d82d97c6 /fs/cifs/cifsglob.h | |
parent | 269f67e1ffead61777b1b0cf2ea0f61d06f8c56d (diff) | |
download | linux-5e9c89d43fa6f5d458d4d0f9e22a67cc001c8da9.tar.xz |
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>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 034b919f091d..64a1095d7cfd 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h @@ -992,6 +992,7 @@ struct cached_fid { struct cifs_fid *fid; struct mutex fid_mutex; struct cifs_tcon *tcon; + struct dentry *dentry; struct work_struct lease_break; struct smb2_file_all_info file_all_info; }; |