aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2ops.c
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilovsky@samba.org>2012-09-18 19:20:28 -0400
committerSteve French <smfrench@gmail.com>2012-09-24 22:46:27 -0400
commit7a5cfb1965854132f2f382eade8c6ce2eeb6f692 (patch)
tree93f982d31fbcf23418423319be26ca77b364f83c /fs/cifs/smb2ops.c
parent1d8c4c0009deda22b436b1f0ab9f2885863717fc (diff)
CIFS: Add SMB2 support for flush
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/smb2ops.c')
-rw-r--r--fs/cifs/smb2ops.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c
index 0fd580168252..d81e1daeb8f0 100644
--- a/fs/cifs/smb2ops.c
+++ b/fs/cifs/smb2ops.c
@@ -329,6 +329,13 @@ smb2_close_file(const unsigned int xid, struct cifs_tcon *tcon,
329 return SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); 329 return SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid);
330} 330}
331 331
332static int
333smb2_flush_file(const unsigned int xid, struct cifs_tcon *tcon,
334 struct cifs_fid *fid)
335{
336 return SMB2_flush(xid, tcon, fid->persistent_fid, fid->volatile_fid);
337}
338
332struct smb_version_operations smb21_operations = { 339struct smb_version_operations smb21_operations = {
333 .setup_request = smb2_setup_request, 340 .setup_request = smb2_setup_request,
334 .setup_async_request = smb2_setup_async_request, 341 .setup_async_request = smb2_setup_async_request,
@@ -363,6 +370,7 @@ struct smb_version_operations smb21_operations = {
363 .open = smb2_open_file, 370 .open = smb2_open_file,
364 .set_fid = smb2_set_fid, 371 .set_fid = smb2_set_fid,
365 .close = smb2_close_file, 372 .close = smb2_close_file,
373 .flush = smb2_flush_file,
366}; 374};
367 375
368struct smb_version_values smb21_values = { 376struct smb_version_values smb21_values = {