Skip to content

Commit 3aca067

Browse files
Dave ChinnerChandan Babu R
authored andcommitted
xfs: xfs_btree_bload_prep_block() should use __GFP_NOFAIL
This was missed in the conversion from KM* flags. Reported-by: Dan Carpenter <dan.carpenter@linaro.org> Fixes: 1063453 ("xfs: convert kmem_zalloc() to kzalloc()") Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: "Darrick J. Wong" <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
1 parent e610e85 commit 3aca067

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/xfs/libxfs/xfs_btree_staging.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ xfs_btree_bload_prep_block(
303303

304304
/* Allocate a new incore btree root block. */
305305
new_size = bbl->iroot_size(cur, level, nr_this_block, priv);
306-
ifp->if_broot = kzalloc(new_size, GFP_KERNEL);
306+
ifp->if_broot = kzalloc(new_size, GFP_KERNEL | __GFP_NOFAIL);
307307
ifp->if_broot_bytes = (int)new_size;
308308

309309
/* Initialize it and send it out. */

0 commit comments

Comments
 (0)