nfs/blocklayout: Use the passed in gfp flags
authorDan Carpenter <dan.carpenter@linaro.org>
Mon, 24 Jul 2023 08:08:46 +0000 (11:08 +0300)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 24 Aug 2023 17:24:15 +0000 (13:24 -0400)
commit08b45fcb2d4675f6182fe0edc0d8b1fe604051fa
tree0f0856c10bc1a694e424b6a2618f57ecea9a97ca
parenta841c9cb9b04b05525f0928633e84e95921ab298
nfs/blocklayout: Use the passed in gfp flags

This allocation should use the passed in GFP_ flags instead of
GFP_KERNEL.  One places where this matters is in filelayout_pg_init_write()
which uses GFP_NOFS as the allocation flags.

Fixes: 5c83746a0cf2 ("pnfs/blocklayout: in-kernel GETDEVICEINFO XDR parsing")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/blocklayout/dev.c