diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2021-03-09 00:07:28 +0100 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2021-04-25 23:28:23 +0200 |
commit | e6eb19504e23607816cd4df35e2633aef2540e96 (patch) | |
tree | f299a932f56122032f7857c85b6c9dcd4e57aa5c /fs/cifs/smb2proto.h | |
parent | cifs: move the check for nohandlecache into open_shroot (diff) | |
download | linux-e6eb19504e23607816cd4df35e2633aef2540e96.tar.xz linux-e6eb19504e23607816cd4df35e2633aef2540e96.zip |
cifs: pass a path to open_shroot and check if it is the root or not
Move the check for the directory path into the open_shroot() function
but still fail for any non-root directories.
This is preparation for later when we will start using the cache also
for other directories than the root.
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to '')
-rw-r--r-- | fs/cifs/smb2proto.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/smb2proto.h b/fs/cifs/smb2proto.h index a2eb34a8d9c9..ceb46f099e33 100644 --- a/fs/cifs/smb2proto.h +++ b/fs/cifs/smb2proto.h @@ -70,6 +70,7 @@ extern int smb3_handle_read_data(struct TCP_Server_Info *server, struct mid_q_entry *mid); extern int open_shroot(unsigned int xid, struct cifs_tcon *tcon, + const char *path, struct cifs_sb_info *cifs_sb, struct cached_fid **cfid); extern void close_shroot(struct cached_fid *cfid); |