diff options
author | Jeff Layton <jlayton@redhat.com> | 2011-10-19 15:28:27 -0400 |
---|---|---|
committer | Jeff Layton <jlayton@redhat.com> | 2011-10-19 15:28:27 -0400 |
commit | 1041e3f9919999b22c9c2a453aa0d92cd16b76ee (patch) | |
tree | 8793a5d636e7c565722bb4353b23c74d185cb28e /fs/cifs/cifsglob.h | |
parent | 42c4dfc213190fafffc53815c2ee6064430bc379 (diff) |
cifs: keep a reusable kvec array for receives
Having to continually allocate a new kvec array is expensive. Allocate
one that's big enough, and only reallocate it as needed.
Reviewed-and-Tested-by: Pavel Shilovsky <piastry@etersoft.ru>
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, 2 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 55ebf39fb3fd..51ed2de23070 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -292,6 +292,8 @@ struct TCP_Server_Info { | |||
292 | bool sec_kerberos; /* supports plain Kerberos */ | 292 | bool sec_kerberos; /* supports plain Kerberos */ |
293 | bool sec_mskerberos; /* supports legacy MS Kerberos */ | 293 | bool sec_mskerberos; /* supports legacy MS Kerberos */ |
294 | struct delayed_work echo; /* echo ping workqueue job */ | 294 | struct delayed_work echo; /* echo ping workqueue job */ |
295 | struct kvec *iov; /* reusable kvec array for receives */ | ||
296 | unsigned int nr_iov; /* number of kvecs in array */ | ||
295 | #ifdef CONFIG_CIFS_FSCACHE | 297 | #ifdef CONFIG_CIFS_FSCACHE |
296 | struct fscache_cookie *fscache; /* client index cache cookie */ | 298 | struct fscache_cookie *fscache; /* client index cache cookie */ |
297 | #endif | 299 | #endif |