diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2018-09-03 19:12:15 +0200 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2018-09-30 21:35:16 +0200 |
commit | 28ced9a84cd2f9fc68a081fb3b34e70c5d459be3 (patch) | |
tree | 2fce92ffd58bdf780ba75c51838f95f38cfe6f00 /fs/nfs/pnfs.h | |
parent | pNFS: Don't zero out the array in nfs4_alloc_pages() (diff) | |
download | linux-28ced9a84cd2f9fc68a081fb3b34e70c5d459be3.tar.xz linux-28ced9a84cd2f9fc68a081fb3b34e70c5d459be3.zip |
pNFS: Don't allocate more pages than we need to fit a layoutget response
For the 'files' and 'flexfiles' layout types, we do not expect the reply
to be any larger than 4k. The block and scsi layout types are a little more
greedy, so we keep allocating the maximum response size for now.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/pnfs.h')
-rw-r--r-- | fs/nfs/pnfs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h index ece367ebde69..e2e9fcd5341d 100644 --- a/fs/nfs/pnfs.h +++ b/fs/nfs/pnfs.h @@ -125,6 +125,7 @@ struct pnfs_layoutdriver_type { struct module *owner; unsigned flags; unsigned max_deviceinfo_size; + unsigned max_layoutget_response; int (*set_layoutdriver) (struct nfs_server *, const struct nfs_fh *); int (*clear_layoutdriver) (struct nfs_server *); |