diff options
author | Jeff Layton <jlayton@redhat.com> | 2012-09-18 19:20:36 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-09-24 22:46:31 -0400 |
commit | f4e49cd2dce2ccac6feae64fbb4e90f7d8baf370 (patch) | |
tree | 61f8e5243dd4883d91c80ec60f267d5bed2d1f1a /fs/cifs/cifsglob.h | |
parent | 67c1f5295150eb86d065d57b4515a472ecbf008f (diff) |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index cc70ac0bac47..737289b50ca5 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -982,7 +982,7 @@ struct cifs_readdata { | |||
982 | int (*marshal_iov) (struct cifs_readdata *rdata, | 982 | int (*marshal_iov) (struct cifs_readdata *rdata, |
983 | unsigned int remaining); | 983 | unsigned int remaining); |
984 | unsigned int nr_iov; | 984 | unsigned int nr_iov; |
985 | struct kvec iov[1]; | 985 | struct kvec *iov; |
986 | }; | 986 | }; |
987 | 987 | ||
988 | struct cifs_writedata; | 988 | struct cifs_writedata; |