mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
nfs/blocklayout: Use the passed in gfp flags
[ Upstream commit08b45fcb2d] 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:5c83746a0c("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4c8568cf4c
commit
ebbfe48dd1
@@ -402,7 +402,7 @@ bl_parse_concat(struct nfs_server *server, struct pnfs_block_dev *d,
|
|||||||
int ret, i;
|
int ret, i;
|
||||||
|
|
||||||
d->children = kcalloc(v->concat.volumes_count,
|
d->children = kcalloc(v->concat.volumes_count,
|
||||||
sizeof(struct pnfs_block_dev), GFP_KERNEL);
|
sizeof(struct pnfs_block_dev), gfp_mask);
|
||||||
if (!d->children)
|
if (!d->children)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
@@ -431,7 +431,7 @@ bl_parse_stripe(struct nfs_server *server, struct pnfs_block_dev *d,
|
|||||||
int ret, i;
|
int ret, i;
|
||||||
|
|
||||||
d->children = kcalloc(v->stripe.volumes_count,
|
d->children = kcalloc(v->stripe.volumes_count,
|
||||||
sizeof(struct pnfs_block_dev), GFP_KERNEL);
|
sizeof(struct pnfs_block_dev), gfp_mask);
|
||||||
if (!d->children)
|
if (!d->children)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user