diff options
author | Jeff Layton <jlayton@redhat.com> | 2012-05-16 07:13:16 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2012-05-16 21:13:29 -0400 |
commit | 8d5ce4d23c79e0f9861b19fc534f5b2dc636f79c (patch) | |
tree | 5f9583d0b3d63e142ec4bbda6058da906a8273f6 /fs/cifs/cifsproto.h | |
parent | 0471ca3fe481cf5ff0ae24c7003f4d9086a02791 (diff) |
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.h | 2 |
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 { | |||
472 | int result; | 472 | int result; |
473 | struct list_head pages; | 473 | struct list_head pages; |
474 | struct work_struct work; | 474 | struct work_struct work; |
475 | int (*marshal_iov) (struct cifs_readdata *rdata, | ||
476 | unsigned int remaining); | ||
475 | unsigned int nr_iov; | 477 | unsigned int nr_iov; |
476 | struct kvec iov[1]; | 478 | struct kvec iov[1]; |
477 | }; | 479 | }; |