aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2proto.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <lsahlber@redhat.com>2021-03-09 09:07:28 +1000
committerSteve French <stfrench@microsoft.com>2021-04-25 16:28:23 -0500
commite6eb19504e23607816cd4df35e2633aef2540e96 (patch)
treef299a932f56122032f7857c85b6c9dcd4e57aa5c /fs/cifs/smb2proto.h
parentcifs: move the check for nohandlecache into open_shroot (diff)
downloadlinux-dev-e6eb19504e23607816cd4df35e2633aef2540e96.tar.xz
linux-dev-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 'fs/cifs/smb2proto.h')
-rw-r--r--fs/cifs/smb2proto.h1
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);