]> 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)
commit3662cf214dcf87a0db7c2d098c1e5b43cd071ebd
tree2fce92ffd58bdf780ba75c51838f95f38cfe6f00
parent297b57b1936dd8d5296b6a907de478b5c300eb72
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