diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2022-08-31 04:49:42 +0200 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2022-10-05 08:33:49 +0200 |
commit | aea6794e664a07324288f3d3484b950922baeebd (patch) | |
tree | 189dbb549100f2bcca2c1856f1c0e010d5f78848 /fs/cifs/cached_dir.h | |
parent | smb3: add dynamic trace points for tree disconnect (diff) | |
download | linux-aea6794e664a07324288f3d3484b950922baeebd.tar.xz linux-aea6794e664a07324288f3d3484b950922baeebd.zip |
cifs: Make tcon contain a wrapper structure cached_fids instead of cached_fid
This wrapper structure will later be expanded to contain a list of
fids that are cached and not just the root 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.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/cifs/cached_dir.h b/fs/cifs/cached_dir.h index bd262dc8b179..e430e1102296 100644 --- a/fs/cifs/cached_dir.h +++ b/fs/cifs/cached_dir.h @@ -45,8 +45,12 @@ struct cached_fid { struct cached_dirents dirents; }; -extern struct cached_fid *init_cached_dir(void); -extern void free_cached_dir(struct cifs_tcon *tcon); +struct cached_fids { + struct cached_fid cfid; +}; + +extern struct cached_fids *init_cached_dirs(void); +extern void free_cached_dirs(struct cached_fids *cfids); extern int open_cached_dir(unsigned int xid, struct cifs_tcon *tcon, const char *path, struct cifs_sb_info *cifs_sb, |