]> www.infradead.org Git - users/hch/xfs.git/commitdiff
xfs: don't use __GFP_RETRY_MAYFAIL in xfs_initialize_perag
authorChristoph Hellwig <hch@lst.de>
Thu, 19 Sep 2024 13:15:10 +0000 (15:15 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 20 Sep 2024 12:06:21 +0000 (14:06 +0200)
__GFP_RETRY_MAYFAIL increases the likelyhood of allocations to fail,
which isn't really helpful during log recovery.  Remove the flag and
stick to the default GFP_KERNEL policies.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_ag.c

index 8fac0ce45b1559533981a3c5c2c0d08601a80f4d..29feaed7c8f8808440e85e732d88a418cd9409cb 100644 (file)
@@ -289,7 +289,7 @@ xfs_initialize_perag(
                return 0;
 
        for (index = old_agcount; index < new_agcount; index++) {
-               pag = kzalloc(sizeof(*pag), GFP_KERNEL | __GFP_RETRY_MAYFAIL);
+               pag = kzalloc(sizeof(*pag), GFP_KERNEL);
                if (!pag) {
                        error = -ENOMEM;
                        goto out_unwind_new_pags;