summaryrefslogtreecommitdiff
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2012-09-19 17:22:30 +0400
committerSteve French <smfrench@gmail.com>2012-09-25 06:46:32 +0400
commitc5fab6f4f081afcfcd7c1d444d9b900d6ef3e50b (patch)
treebfec76b22571f283e85491ad6a20f1aaba757122 /fs/cifs/cifsglob.h
parentf4e49cd2dce2ccac6feae64fbb4e90f7d8baf370 (diff)
downloadlinux-c5fab6f4f081afcfcd7c1d444d9b900d6ef3e50b.tar.xz
cifs: turn the pages list in cifs_readdata into an array
We'll need an array to put into a smb_rqst, so convert this into an array instead of (ab)using the lru list_head. Signed-off-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index 737289b50ca5..b70863ebedf2 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -977,12 +977,13 @@ struct cifs_readdata {
unsigned int bytes;
pid_t pid;
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;
+ unsigned int nr_pages;
+ struct page *pages[];
};
struct cifs_writedata;