pNFS/flexfiles: Ensure we have enough buffer for layoutreturn
authorTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 9 Dec 2016 23:07:51 +0000 (18:07 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 10 Dec 2016 01:26:59 +0000 (20:26 -0500)
commitd9152114f7c9abb096275b72db8527c004d57bf9
tree46646c3839734c3de03db48f311972e7f1ed6af5
parent5ba6a09e92342e40b63af1654da8b8bc8b5a83c6
pNFS/flexfiles: Ensure we have enough buffer for layoutreturn

The flexfiles client can piggyback both layout errors and layoutstats
as part of the layoutreturn. Both these payloads can get large, with
20 layout error entries taking up about 1.2K, and 4 layoutstats entries
taking up another 1K.
This patch allows a maximum payload of 4k by allocating a full page.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/flexfilelayout/flexfilelayout.c
fs/nfs/flexfilelayout/flexfilelayout.h