]> www.infradead.org Git - users/hch/xfs.git/commitdiff
xfs: don't use __GFP_RETRY_MAYFAIL xfs-perag-recovery
authorChristoph Hellwig <hch@lst.de>
Sun, 8 Sep 2024 07:48:36 +0000 (10:48 +0300)
committerChristoph Hellwig <hch@lst.de>
Sun, 8 Sep 2024 10:22:19 +0000 (13:22 +0300)
__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>
fs/xfs/libxfs/xfs_ag.c

index 3f695100d7ab5898079f56e711ba6f6d8db410cd..f6c666a87dd393cbccf7ffcdb7e6ebfbab2c130d 100644 (file)
@@ -289,7 +289,7 @@ xfs_initialize_perag(
                return 0;
 
        for (index = old_agcount; index < 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;