aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb1ops.c
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilovsky@samba.org>2012-09-18 19:20:27 -0400
committerSteve French <smfrench@gmail.com>2012-09-24 22:46:27 -0400
commit1d8c4c0009deda22b436b1f0ab9f2885863717fc (patch)
tree3bcc2e8df2ed96be3681854e7d86bdaa2e95be5a /fs/cifs/smb1ops.c
parent2ae78ba85cd7b4c3a164434ab1f6c9e515c6fa1d (diff)
CIFS: Make flush code use 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.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/cifs/smb1ops.c b/fs/cifs/smb1ops.c
index dd64754ed8cb..df20dd9e64ca 100644
--- a/fs/cifs/smb1ops.c
+++ b/fs/cifs/smb1ops.c
@@ -648,6 +648,13 @@ cifs_close_file(const unsigned int xid, struct cifs_tcon *tcon,
648 return CIFSSMBClose(xid, tcon, fid->netfid); 648 return CIFSSMBClose(xid, tcon, fid->netfid);
649} 649}
650 650
651static int
652cifs_flush_file(const unsigned int xid, struct cifs_tcon *tcon,
653 struct cifs_fid *fid)
654{
655 return CIFSSMBFlush(xid, tcon, fid->netfid);
656}
657
651struct smb_version_operations smb1_operations = { 658struct smb_version_operations smb1_operations = {
652 .send_cancel = send_nt_cancel, 659 .send_cancel = send_nt_cancel,
653 .compare_fids = cifs_compare_fids, 660 .compare_fids = cifs_compare_fids,
@@ -691,6 +698,7 @@ struct smb_version_operations smb1_operations = {
691 .open = cifs_open_file, 698 .open = cifs_open_file,
692 .set_fid = cifs_set_fid, 699 .set_fid = cifs_set_fid,
693 .close = cifs_close_file, 700 .close = cifs_close_file,
701 .flush = cifs_flush_file,
694}; 702};
695 703
696struct smb_version_values smb1_values = { 704struct smb_version_values smb1_values = {