summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsglob.h
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2012-09-19 01:20:36 +0200
committerSteve French <smfrench@gmail.com>2012-09-25 04:46:31 +0200
commitf4e49cd2dce2ccac6feae64fbb4e90f7d8baf370 (patch)
tree61f8e5243dd4883d91c80ec60f267d5bed2d1f1a /fs/cifs/cifsglob.h
parentcifs: add deprecation warning to sockopt=TCP_NODELAY option (diff)
downloadlinux-f4e49cd2dce2ccac6feae64fbb4e90f7d8baf370.tar.xz
linux-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 cc70ac0bac47..737289b50ca5 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;