aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2012-09-19 09:22:32 -0400
committerSteve French <smfrench@gmail.com>2012-09-24 22:46:32 -0400
commit8321fec436050b586cee448f2da0a6999e5172dd (patch)
treeee361f0ea1ca398158f7ccc71e2dc4ae4b9b89b0 /fs/cifs/cifsglob.h
parentc5fab6f4f081afcfcd7c1d444d9b900d6ef3e50b (diff)
cifs: convert async read code to use pages array without kmapping
Replace the "marshal_iov" function with a "read_into_pages" function. That function will copy the read data off the socket and into the pages array, kmapping and reading pages one at a time. Signed-off-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index b70863ebedf2..93e16200b2e8 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -978,8 +978,11 @@ struct cifs_readdata {
978 pid_t pid; 978 pid_t pid;
979 int result; 979 int result;
980 struct work_struct work; 980 struct work_struct work;
981 int (*marshal_iov) (struct cifs_readdata *rdata, 981 int (*read_into_pages)(struct TCP_Server_Info *server,
982 unsigned int remaining); 982 struct cifs_readdata *rdata,
983 unsigned int len);
984 unsigned int pagesz;
985 unsigned int tailsz;
983 unsigned int nr_iov; 986 unsigned int nr_iov;
984 struct kvec *iov; 987 struct kvec *iov;
985 unsigned int nr_pages; 988 unsigned int nr_pages;