diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2022-08-31 12:49:42 +1000 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2022-10-05 01:33:49 -0500 |
commit | aea6794e664a07324288f3d3484b950922baeebd (patch) | |
tree | 189dbb549100f2bcca2c1856f1c0e010d5f78848 /fs/cifs/misc.c | |
parent | 68e14569d7e5a1798fcbfd945022a4de86f944a0 (diff) | |
download | lwn-aea6794e664a07324288f3d3484b950922baeebd.tar.gz lwn-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/misc.c')
-rw-r--r-- | fs/cifs/misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c index f42812e4c2cd..20a112c96bae 100644 --- a/fs/cifs/misc.c +++ b/fs/cifs/misc.c @@ -117,8 +117,8 @@ tconInfoAlloc(void) ret_buf = kzalloc(sizeof(*ret_buf), GFP_KERNEL); if (!ret_buf) return NULL; - ret_buf->cfid = init_cached_dir(); - if (!ret_buf->cfid) { + ret_buf->cfids = init_cached_dirs(); + if (!ret_buf->cfids) { kfree(ret_buf); return NULL; } @@ -144,7 +144,7 @@ tconInfoFree(struct cifs_tcon *tcon) cifs_dbg(FYI, "Null buffer passed to tconInfoFree\n"); return; } - free_cached_dir(tcon); + free_cached_dirs(tcon->cfids); atomic_dec(&tconInfoAllocCount); kfree(tcon->nativeFileSystem); kfree_sensitive(tcon->password); |