aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cached_dir.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <lsahlber@redhat.com>2022-08-31 12:49:44 +1000
committerSteve French <stfrench@microsoft.com>2022-10-05 01:34:08 -0500
commit30f8f37147bc9af794b89e37d42fc858f201e5b0 (patch)
treef4a363373d59264ee571fb20e6dc35573a234a88 /fs/cifs/cached_dir.h
parentcifs: improve handlecaching (diff)
downloadlinux-dev-30f8f37147bc9af794b89e37d42fc858f201e5b0.tar.xz
linux-dev-30f8f37147bc9af794b89e37d42fc858f201e5b0.zip
cifs: store a pointer to a fid in the cfid structure instead of the struct
also create a constructor that takes a path name and stores it in the fid. Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/cached_dir.h')
-rw-r--r--fs/cifs/cached_dir.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/cifs/cached_dir.h b/fs/cifs/cached_dir.h
index e430e1102296..bdf6c3866653 100644
--- a/fs/cifs/cached_dir.h
+++ b/fs/cifs/cached_dir.h
@@ -31,6 +31,7 @@ struct cached_dirents {
};
struct cached_fid {
+ const char *path;
bool is_valid:1; /* Do we have a useable root fid */
bool file_all_info_is_valid:1;
bool has_lease:1;
@@ -46,7 +47,8 @@ struct cached_fid {
};
struct cached_fids {
- struct cached_fid cfid;
+ struct mutex cfid_list_mutex;
+ struct cached_fid *cfid;
};
extern struct cached_fids *init_cached_dirs(void);