]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6e562ec27c012a6a27db78fdf2c4b2d459c92562
tree2fce92ffd58bdf780ba75c51838f95f38cfe6f00
parent9ab415f5f0f7c5ce8b8571be367475a31c2e5d99
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