summaryrefslogtreecommitdiff
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2012-09-18 16:20:36 -0700
committerSteve French <smfrench@gmail.com>2012-09-24 21:46:31 -0500
commitf4e49cd2dce2ccac6feae64fbb4e90f7d8baf370 (patch)
tree61f8e5243dd4883d91c80ec60f267d5bed2d1f1a /fs/cifs/cifsglob.h
parent67c1f5295150eb86d065d57b4515a472ecbf008f (diff)
downloadlinux-3.10-f4e49cd2dce2ccac6feae64fbb4e90f7d8baf370.tar.gz
linux-3.10-f4e49cd2dce2ccac6feae64fbb4e90f7d8baf370.tar.bz2
linux-3.10-f4e49cd2dce2ccac6feae64fbb4e90f7d8baf370.zip
cifs: allocate kvec array for cifs_readdata as a separate allocation
Eventually, we're going to want to append a list of pages to cifs_readdata instead of a list of kvecs. To prepare for that, turn the kvec array allocation into a separate one and just keep a pointer to it in the readdata. Signed-off-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r--fs/cifs/cifsglob.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index cc70ac0bac4..737289b50ca 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -982,7 +982,7 @@ struct cifs_readdata {
int (*marshal_iov) (struct cifs_readdata *rdata,
unsigned int remaining);
unsigned int nr_iov;
- struct kvec iov[1];
+ struct kvec *iov;
};
struct cifs_writedata;