]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commitdiff
xfs: xfs_btree_bload_prep_block() should use __GFP_NOFAIL
authorDave Chinner <dchinner@redhat.com>
Mon, 22 Apr 2024 17:01:14 +0000 (10:01 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 3 Jun 2024 18:37:41 +0000 (11:37 -0700)
Source kernel commit: 3aca0676a1141c4d198f8b3c934435941ba84244

This was missed in the conversion from KM* flags.

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Fixes: 10634530f7ba ("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>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
libxfs/xfs_btree_staging.c

index 52410fe4f2e4509b7980faa7b301d3c894df7da5..2f5b1d0b685d2a36836767947bb19acf13b06cdf 100644 (file)
@@ -303,7 +303,7 @@ xfs_btree_bload_prep_block(
 
                /* Allocate a new incore btree root block. */
                new_size = bbl->iroot_size(cur, level, nr_this_block, priv);
-               ifp->if_broot = kzalloc(new_size, GFP_KERNEL);
+               ifp->if_broot = kzalloc(new_size, GFP_KERNEL | __GFP_NOFAIL);
                ifp->if_broot_bytes = (int)new_size;
 
                /* Initialize it and send it out. */