diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2018-07-31 00:48:22 +0200 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2018-08-07 21:20:22 +0200 |
commit | 9da6ec7775d2cd76df53fbf4f1f35f6d490204f5 (patch) | |
tree | 4b94d5c7acde55bde6f42779a986c9de3268d513 /fs/cifs/smb2proto.h | |
parent | smb3: add reconnect tracepoints (diff) | |
download | linux-9da6ec7775d2cd76df53fbf4f1f35f6d490204f5.tar.xz 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.h | 1 |
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, |