summaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb1ops.c
diff options
context:
space:
mode:
authorPavel Shilovsky2012-09-19 01:20:29 +0200
committerSteve French2012-09-25 04:46:28 +0200
commitf9c6e234c3ca64b8d49336908df99948518d6261 (patch)
treec49a8042f3039d8c007018a51bfa0264341a8c32 /fs/cifs/smb1ops.c
parentCIFS: Add SMB2 support for cifs_iovec_write (diff)
downloadkernel-qcow2-linux-f9c6e234c3ca64b8d49336908df99948518d6261.tar.gz
kernel-qcow2-linux-f9c6e234c3ca64b8d49336908df99948518d6261.tar.xz
kernel-qcow2-linux-f9c6e234c3ca64b8d49336908df99948518d6261.zip
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.c10
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,
return CIFSSMBFlush(xid, tcon, fid->netfid);
}
+static int
+cifs_sync_read(const unsigned int xid, struct cifsFileInfo *cfile,
+ struct cifs_io_parms *parms, unsigned int *bytes_read,
+ char **buf, int *buf_type)
+{
+ parms->netfid = cfile->fid.netfid;
+ return CIFSSMBRead(xid, parms, bytes_read, buf, buf_type);
+}
+
struct smb_version_operations smb1_operations = {
.send_cancel = send_nt_cancel,
.compare_fids = cifs_compare_fids,
@@ -787,6 +796,7 @@ struct smb_version_operations smb1_operations = {
.flush = cifs_flush_file,
.async_readv = cifs_async_readv,
.async_writev = cifs_async_writev,
+ .sync_read = cifs_sync_read,
};
struct smb_version_values smb1_values = {