Commit 760ad0ca authored by Pavel Shilovsky's avatar Pavel Shilovsky Committed by Steve French

CIFS: Make ops->close return void

Signed-off-by: default avatarPavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: default avatarSteve French <smfrench@gmail.com>
parent 4f2b86ab
...@@ -316,7 +316,8 @@ struct smb_version_operations { ...@@ -316,7 +316,8 @@ struct smb_version_operations {
/* set fid protocol-specific info */ /* set fid protocol-specific info */
void (*set_fid)(struct cifsFileInfo *, struct cifs_fid *, __u32); void (*set_fid)(struct cifsFileInfo *, struct cifs_fid *, __u32);
/* close a file */ /* close a file */
int (*close)(const unsigned int, struct cifs_tcon *, struct cifs_fid *); void (*close)(const unsigned int, struct cifs_tcon *,
struct cifs_fid *);
/* send a flush request to the server */ /* send a flush request to the server */
int (*flush)(const unsigned int, struct cifs_tcon *, struct cifs_fid *); int (*flush)(const unsigned int, struct cifs_tcon *, struct cifs_fid *);
/* async read from the server */ /* async read from the server */
......
...@@ -355,12 +355,11 @@ void cifsFileInfo_put(struct cifsFileInfo *cifs_file) ...@@ -355,12 +355,11 @@ void cifsFileInfo_put(struct cifsFileInfo *cifs_file)
if (!tcon->need_reconnect && !cifs_file->invalidHandle) { if (!tcon->need_reconnect && !cifs_file->invalidHandle) {
struct TCP_Server_Info *server = tcon->ses->server; struct TCP_Server_Info *server = tcon->ses->server;
unsigned int xid; unsigned int xid;
int rc = -ENOSYS;
xid = get_xid(); xid = get_xid();
if (server->ops->close) if (server->ops->close)
rc = server->ops->close(xid, tcon, &cifs_file->fid); server->ops->close(xid, tcon, &cifs_file->fid);
free_xid(xid); _free_xid(xid);
} }
cifs_del_pending_open(&open); cifs_del_pending_open(&open);
......
...@@ -720,11 +720,11 @@ cifs_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) ...@@ -720,11 +720,11 @@ cifs_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock)
cinode->can_cache_brlcks = cinode->clientCanCacheAll; cinode->can_cache_brlcks = cinode->clientCanCacheAll;
} }
static int static void
cifs_close_file(const unsigned int xid, struct cifs_tcon *tcon, cifs_close_file(const unsigned int xid, struct cifs_tcon *tcon,
struct cifs_fid *fid) struct cifs_fid *fid)
{ {
return CIFSSMBClose(xid, tcon, fid->netfid); CIFSSMBClose(xid, tcon, fid->netfid);
} }
static int static int
......
...@@ -374,11 +374,11 @@ smb2_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) ...@@ -374,11 +374,11 @@ smb2_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock)
cinode->can_cache_brlcks = cinode->clientCanCacheAll; cinode->can_cache_brlcks = cinode->clientCanCacheAll;
} }
static int static void
smb2_close_file(const unsigned int xid, struct cifs_tcon *tcon, smb2_close_file(const unsigned int xid, struct cifs_tcon *tcon,
struct cifs_fid *fid) struct cifs_fid *fid)
{ {
return SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid);
} }
static int static int
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment