aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsproto.h
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2012-05-16 07:13:16 -0400
committerSteve French <sfrench@us.ibm.com>2012-05-16 20:13:29 -0500
commit8d5ce4d23c79e0f9861b19fc534f5b2dc636f79c (patch)
tree5f9583d0b3d63e142ec4bbda6058da906a8273f6 /fs/cifs/cifsproto.h
parentcifs: make cifs_readdata_alloc take a work_func_t arg (diff)
downloadlinux-dev-8d5ce4d23c79e0f9861b19fc534f5b2dc636f79c.tar.xz
linux-dev-8d5ce4d23c79e0f9861b19fc534f5b2dc636f79c.zip
cifs: abstract out function to marshal the iovec for readv receives
Cached and uncached reads will need to do different things here to handle the difference when the pages are in pagecache and not. Abstract out the function that marshals the page list into a kvec array. Signed-off-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'fs/cifs/cifsproto.h')
-rw-r--r--fs/cifs/cifsproto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h
index d57cdf4e2033..f309b43848fb 100644
--- a/fs/cifs/cifsproto.h
+++ b/fs/cifs/cifsproto.h
@@ -472,6 +472,8 @@ struct cifs_readdata {
int result;
struct list_head pages;
struct work_struct work;
+ int (*marshal_iov) (struct cifs_readdata *rdata,
+ unsigned int remaining);
unsigned int nr_iov;
struct kvec iov[1];
};