diff options
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 = { |