diff options
-rw-r--r-- | fs/cifs/cifsglob.h | 3 | ||||
-rw-r--r-- | fs/cifs/file.c | 5 | ||||
-rw-r--r-- | fs/cifs/smb1ops.c | 4 | ||||
-rw-r--r-- | fs/cifs/smb2ops.c | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index a39e5b7fc844..f6f40635abca 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -316,7 +316,8 @@ struct smb_version_operations { | |||
316 | /* set fid protocol-specific info */ | 316 | /* set fid protocol-specific info */ |
317 | void (*set_fid)(struct cifsFileInfo *, struct cifs_fid *, __u32); | 317 | void (*set_fid)(struct cifsFileInfo *, struct cifs_fid *, __u32); |
318 | /* close a file */ | 318 | /* close a file */ |
319 | int (*close)(const unsigned int, struct cifs_tcon *, struct cifs_fid *); | 319 | void (*close)(const unsigned int, struct cifs_tcon *, |
320 | struct cifs_fid *); | ||
320 | /* send a flush request to the server */ | 321 | /* send a flush request to the server */ |
321 | int (*flush)(const unsigned int, struct cifs_tcon *, struct cifs_fid *); | 322 | int (*flush)(const unsigned int, struct cifs_tcon *, struct cifs_fid *); |
322 | /* async read from the server */ | 323 | /* async read from the server */ |
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index 075f7cfd1da5..7d7bbdc4c8e7 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c | |||
@@ -355,12 +355,11 @@ void cifsFileInfo_put(struct cifsFileInfo *cifs_file) | |||
355 | if (!tcon->need_reconnect && !cifs_file->invalidHandle) { | 355 | if (!tcon->need_reconnect && !cifs_file->invalidHandle) { |
356 | struct TCP_Server_Info *server = tcon->ses->server; | 356 | struct TCP_Server_Info *server = tcon->ses->server; |
357 | unsigned int xid; | 357 | unsigned int xid; |
358 | int rc = -ENOSYS; | ||
359 | 358 | ||
360 | xid = get_xid(); | 359 | xid = get_xid(); |
361 | if (server->ops->close) | 360 | if (server->ops->close) |
362 | rc = server->ops->close(xid, tcon, &cifs_file->fid); | 361 | server->ops->close(xid, tcon, &cifs_file->fid); |
363 | free_xid(xid); | 362 | _free_xid(xid); |
364 | } | 363 | } |
365 | 364 | ||
366 | cifs_del_pending_open(&open); | 365 | cifs_del_pending_open(&open); |
diff --git a/fs/cifs/smb1ops.c b/fs/cifs/smb1ops.c index 5fb0fe5f72b6..42dccbb57c40 100644 --- a/fs/cifs/smb1ops.c +++ b/fs/cifs/smb1ops.c | |||
@@ -720,11 +720,11 @@ cifs_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) | |||
720 | cinode->can_cache_brlcks = cinode->clientCanCacheAll; | 720 | cinode->can_cache_brlcks = cinode->clientCanCacheAll; |
721 | } | 721 | } |
722 | 722 | ||
723 | static int | 723 | static void |
724 | cifs_close_file(const unsigned int xid, struct cifs_tcon *tcon, | 724 | cifs_close_file(const unsigned int xid, struct cifs_tcon *tcon, |
725 | struct cifs_fid *fid) | 725 | struct cifs_fid *fid) |
726 | { | 726 | { |
727 | return CIFSSMBClose(xid, tcon, fid->netfid); | 727 | CIFSSMBClose(xid, tcon, fid->netfid); |
728 | } | 728 | } |
729 | 729 | ||
730 | static int | 730 | static int |
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c index 2183bb343edd..1570cbea4a49 100644 --- a/fs/cifs/smb2ops.c +++ b/fs/cifs/smb2ops.c | |||
@@ -374,11 +374,11 @@ smb2_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) | |||
374 | cinode->can_cache_brlcks = cinode->clientCanCacheAll; | 374 | cinode->can_cache_brlcks = cinode->clientCanCacheAll; |
375 | } | 375 | } |
376 | 376 | ||
377 | static int | 377 | static void |
378 | smb2_close_file(const unsigned int xid, struct cifs_tcon *tcon, | 378 | smb2_close_file(const unsigned int xid, struct cifs_tcon *tcon, |
379 | struct cifs_fid *fid) | 379 | struct cifs_fid *fid) |
380 | { | 380 | { |
381 | return SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); | 381 | SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); |
382 | } | 382 | } |
383 | 383 | ||
384 | static int | 384 | static int |