diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2022-08-10 22:00:08 -0500 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2022-08-11 10:33:18 -0500 |
commit | 05b98fd2da6bdf241d3b9ba40582d60a84a89d70 (patch) | |
tree | 8d32c6b3ed80270c9c81574fc9449e9b783ee2e2 /fs/cifs/smb2inode.c | |
parent | cd04345598b7c191d41574bc9da3fe435dc65605 (diff) | |
download | linux-rpi-05b98fd2da6bdf241d3b9ba40582d60a84a89d70.tar.gz linux-rpi-05b98fd2da6bdf241d3b9ba40582d60a84a89d70.tar.bz2 linux-rpi-05b98fd2da6bdf241d3b9ba40582d60a84a89d70.zip |
cifs: Move cached-dir functions into a separate file
Also rename crfid to cfid to have consistent naming for this variable.
This commit does not change any logic.
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/smb2inode.c')
-rw-r--r-- | fs/cifs/smb2inode.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/cifs/smb2inode.c b/fs/cifs/smb2inode.c index 8571a459c710..f6f9fc3f2e2d 100644 --- a/fs/cifs/smb2inode.c +++ b/fs/cifs/smb2inode.c @@ -23,6 +23,7 @@ #include "smb2glob.h" #include "smb2pdu.h" #include "smb2proto.h" +#include "cached_dir.h" static void free_set_inf_compound(struct smb_rqst *rqst) @@ -518,9 +519,9 @@ smb2_query_path_info(const unsigned int xid, struct cifs_tcon *tcon, rc = open_cached_dir(xid, tcon, full_path, cifs_sb, &cfid); /* If it is a root and its handle is cached then use it */ if (!rc) { - if (tcon->crfid.file_all_info_is_valid) { + if (tcon->cfid.file_all_info_is_valid) { move_smb2_info_to_cifs(data, - &tcon->crfid.file_all_info); + &tcon->cfid.file_all_info); } else { rc = SMB2_query_info(xid, tcon, cfid->fid->persistent_fid, |