OSDN Git Service

pNFS: Don't allocate more pages than we need to fit a layoutget response
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 3 Sep 2018 17:12:15 +0000 (13:12 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 30 Sep 2018 19:35:16 +0000 (15:35 -0400)
commit28ced9a84cd2f9fc68a081fb3b34e70c5d459be3
tree2fce92ffd58bdf780ba75c51838f95f38cfe6f00
parenta2791d3a2cee9432e78bbdcfde586ef54e32d223
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>
fs/nfs/filelayout/filelayout.c
fs/nfs/flexfilelayout/flexfilelayout.c
fs/nfs/pnfs.c
fs/nfs/pnfs.h