diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2012-09-18 19:20:26 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-09-24 22:46:26 -0400 |
commit | 0ff78a221bf7839a7f20be9929433d17e868e987 (patch) | |
tree | 6d63e90a9928b2a319848fd3403d11bdc8d24147 /fs/cifs/smb1ops.c | |
parent | fb1214e48f735cdb68446adb77ec37aa3de60697 (diff) |
CIFS: Move close code to ops struct
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/smb1ops.c')
-rw-r--r-- | fs/cifs/smb1ops.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/cifs/smb1ops.c b/fs/cifs/smb1ops.c index 907b30865000..bb758476e139 100644 --- a/fs/cifs/smb1ops.c +++ b/fs/cifs/smb1ops.c | |||
@@ -634,6 +634,13 @@ cifs_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) | |||
634 | cinode->can_cache_brlcks = cinode->clientCanCacheAll; | 634 | cinode->can_cache_brlcks = cinode->clientCanCacheAll; |
635 | } | 635 | } |
636 | 636 | ||
637 | static int | ||
638 | cifs_close_file(const unsigned int xid, struct cifs_tcon *tcon, | ||
639 | struct cifs_fid *fid) | ||
640 | { | ||
641 | return CIFSSMBClose(xid, tcon, fid->netfid); | ||
642 | } | ||
643 | |||
637 | struct smb_version_operations smb1_operations = { | 644 | struct smb_version_operations smb1_operations = { |
638 | .send_cancel = send_nt_cancel, | 645 | .send_cancel = send_nt_cancel, |
639 | .compare_fids = cifs_compare_fids, | 646 | .compare_fids = cifs_compare_fids, |
@@ -675,6 +682,7 @@ struct smb_version_operations smb1_operations = { | |||
675 | .rename_pending_delete = cifs_rename_pending_delete, | 682 | .rename_pending_delete = cifs_rename_pending_delete, |
676 | .open = cifs_open_file, | 683 | .open = cifs_open_file, |
677 | .set_fid = cifs_set_fid, | 684 | .set_fid = cifs_set_fid, |
685 | .close = cifs_close_file, | ||
678 | }; | 686 | }; |
679 | 687 | ||
680 | struct smb_version_values smb1_values = { | 688 | struct smb_version_values smb1_values = { |