diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2012-09-18 19:20:30 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-09-24 22:46:28 -0400 |
commit | 009d344398bb3e844b31eb9e6a7860748c6f6dd3 (patch) | |
tree | aa999b974fd42753976be22c2596d1f1fcf83511 /fs/cifs/smb2ops.c | |
parent | ba9ad7257ae50b8aa72a3f44da839830e065363c (diff) |
CIFS: Add writepage support for SMB2
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.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c index fb289d2abae7..f9c3dbee9010 100644 --- a/fs/cifs/smb2ops.c +++ b/fs/cifs/smb2ops.c | |||
@@ -404,6 +404,17 @@ smb2_sync_read(const unsigned int xid, struct cifsFileInfo *cfile, | |||
404 | return SMB2_read(xid, parms, bytes_read, buf, buf_type); | 404 | return SMB2_read(xid, parms, bytes_read, buf, buf_type); |
405 | } | 405 | } |
406 | 406 | ||
407 | static int | ||
408 | smb2_sync_write(const unsigned int xid, struct cifsFileInfo *cfile, | ||
409 | struct cifs_io_parms *parms, unsigned int *written, | ||
410 | struct kvec *iov, unsigned long nr_segs) | ||
411 | { | ||
412 | |||
413 | parms->persistent_fid = cfile->fid.persistent_fid; | ||
414 | parms->volatile_fid = cfile->fid.volatile_fid; | ||
415 | return SMB2_write(xid, parms, written, iov, nr_segs); | ||
416 | } | ||
417 | |||
407 | struct smb_version_operations smb21_operations = { | 418 | struct smb_version_operations smb21_operations = { |
408 | .setup_request = smb2_setup_request, | 419 | .setup_request = smb2_setup_request, |
409 | .setup_async_request = smb2_setup_async_request, | 420 | .setup_async_request = smb2_setup_async_request, |
@@ -447,6 +458,7 @@ struct smb_version_operations smb21_operations = { | |||
447 | .async_readv = smb2_async_readv, | 458 | .async_readv = smb2_async_readv, |
448 | .async_writev = smb2_async_writev, | 459 | .async_writev = smb2_async_writev, |
449 | .sync_read = smb2_sync_read, | 460 | .sync_read = smb2_sync_read, |
461 | .sync_write = smb2_sync_write, | ||
450 | }; | 462 | }; |
451 | 463 | ||
452 | struct smb_version_values smb21_values = { | 464 | struct smb_version_values smb21_values = { |