aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsproto.h
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2012-03-23 14:40:56 -0400
committerJeff Layton <jlayton@redhat.com>2012-03-23 14:40:56 -0400
commite9492871fb0546f1b73f309d9e8c0f030bfdfdca (patch)
treebe69a497fddd74de6b2f6ed18f525907a6dadab4 /fs/cifs/cifsproto.h
parenta7103b99e4cc00b9d40f6bad77389f9e2341820a (diff)
cifs: abstract out function to marshal up the iovec array for async writes
We'll need to do something a bit different depending on the caller. Abstract the code that marshals the page array into an iovec. Signed-off-by: Jeff Layton <jlayton@redhat.com> Reviewed-by: Pavel Shilovsky <piastry@etersoft.ru>
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 cbf09cdd42a7..57ce6f834220 100644
--- a/fs/cifs/cifsproto.h
+++ b/fs/cifs/cifsproto.h
@@ -490,6 +490,8 @@ struct cifs_writedata {
490 pid_t pid; 490 pid_t pid;
491 unsigned int bytes; 491 unsigned int bytes;
492 int result; 492 int result;
493 void (*marshal_iov) (struct kvec *iov,
494 struct cifs_writedata *wdata);
493 unsigned int nr_pages; 495 unsigned int nr_pages;
494 struct page *pages[1]; 496 struct page *pages[1];
495}; 497};