aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <lsahlber@redhat.com>2021-03-09 09:07:31 +1000
committerSteve French <stfrench@microsoft.com>2021-04-25 16:28:23 -0500
commit5e9c89d43fa6f5d458d4d0f9e22a67cc001c8da9 (patch)
treee0882caf0f8bf52942dcfcbf9e671d41d82d97c6 /fs/cifs/cifsglob.h
parentcifs: store a pointer to the root dentry in cifs_sb_info once we have completed mounting the share (diff)
downloadlinux-dev-5e9c89d43fa6f5d458d4d0f9e22a67cc001c8da9.tar.xz
linux-dev-5e9c89d43fa6f5d458d4d0f9e22a67cc001c8da9.zip
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.h1
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;
};