summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
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/cifsglob.h
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/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index 330f6259bb6d..5b1751d81901 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -174,6 +174,7 @@ struct smb_vol;
struct cifs_fid;
struct cifs_readdata;
struct cifs_writedata;
+struct cifs_io_parms;
struct smb_version_operations {
int (*send_cancel)(struct TCP_Server_Info *, void *,
@@ -286,6 +287,10 @@ struct smb_version_operations {
int (*async_readv)(struct cifs_readdata *);
/* async write to the server */
int (*async_writev)(struct cifs_writedata *);
+ /* sync read from the server */
+ int (*sync_read)(const unsigned int, struct cifsFileInfo *,
+ struct cifs_io_parms *, unsigned int *, char **,
+ int *);
};
struct smb_version_values {