diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2012-09-18 19:20:29 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-09-24 22:46:28 -0400 |
commit | f9c6e234c3ca64b8d49336908df99948518d6261 (patch) | |
tree | c49a8042f3039d8c007018a51bfa0264341a8c32 /fs/cifs/smb1ops.c | |
parent | 33319141252fd14b58cf13685156c23dcaac2527 (diff) |
CIFS: Move readpage 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 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/cifs/smb1ops.c b/fs/cifs/smb1ops.c index 50c3697af5aa..cea958ee8b7a 100644 --- a/fs/cifs/smb1ops.c +++ b/fs/cifs/smb1ops.c | |||
@@ -739,6 +739,15 @@ cifs_flush_file(const unsigned int xid, struct cifs_tcon *tcon, | |||
739 | return CIFSSMBFlush(xid, tcon, fid->netfid); | 739 | return CIFSSMBFlush(xid, tcon, fid->netfid); |
740 | } | 740 | } |
741 | 741 | ||
742 | static int | ||
743 | cifs_sync_read(const unsigned int xid, struct cifsFileInfo *cfile, | ||
744 | struct cifs_io_parms *parms, unsigned int *bytes_read, | ||
745 | char **buf, int *buf_type) | ||
746 | { | ||
747 | parms->netfid = cfile->fid.netfid; | ||
748 | return CIFSSMBRead(xid, parms, bytes_read, buf, buf_type); | ||
749 | } | ||
750 | |||
742 | struct smb_version_operations smb1_operations = { | 751 | struct smb_version_operations smb1_operations = { |
743 | .send_cancel = send_nt_cancel, | 752 | .send_cancel = send_nt_cancel, |
744 | .compare_fids = cifs_compare_fids, | 753 | .compare_fids = cifs_compare_fids, |
@@ -787,6 +796,7 @@ struct smb_version_operations smb1_operations = { | |||
787 | .flush = cifs_flush_file, | 796 | .flush = cifs_flush_file, |
788 | .async_readv = cifs_async_readv, | 797 | .async_readv = cifs_async_readv, |
789 | .async_writev = cifs_async_writev, | 798 | .async_writev = cifs_async_writev, |
799 | .sync_read = cifs_sync_read, | ||
790 | }; | 800 | }; |
791 | 801 | ||
792 | struct smb_version_values smb1_values = { | 802 | struct smb_version_values smb1_values = { |