summaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2proto.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <lsahlber@redhat.com>2018-07-31 08:48:22 +1000
committerSteve French <stfrench@microsoft.com>2018-08-07 14:20:22 -0500
commit9da6ec7775d2cd76df53fbf4f1f35f6d490204f5 (patch)
tree4b94d5c7acde55bde6f42779a986c9de3268d513 /fs/cifs/smb2proto.h
parentbf1fdeb7899a86adfbe0b521bee5cf78bb870a14 (diff)
downloadlinux-9da6ec7775d2cd76df53fbf4f1f35f6d490204f5.tar.gz
linux-9da6ec7775d2cd76df53fbf4f1f35f6d490204f5.tar.bz2
linux-9da6ec7775d2cd76df53fbf4f1f35f6d490204f5.zip
cifs: use a refcount to protect open/closing the cached file handle
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com> Cc: <stable@vger.kernel.org>
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 98d9b30c16a6..19aa483395c7 100644
--- a/fs/cifs/smb2proto.h
+++ b/fs/cifs/smb2proto.h
@@ -68,6 +68,7 @@ extern int smb3_handle_read_data(struct TCP_Server_Info *server,
extern int open_shroot(unsigned int xid, struct cifs_tcon *tcon,
struct cifs_fid *pfid);
+extern void close_shroot(struct cached_fid *cfid);
extern void move_smb2_info_to_cifs(FILE_ALL_INFO *dst,
struct smb2_file_all_info *src);
extern int smb2_query_path_info(const unsigned int xid, struct cifs_tcon *tcon,