]> www.infradead.org Git - users/hch/xfsprogs.git/commitdiff
xfs: don't use __GFP_RETRY_MAYFAIL in xfs_initialize_perag
authorChristoph Hellwig <hch@lst.de>
Mon, 28 Oct 2024 05:11:48 +0000 (22:11 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 31 Oct 2024 22:45:04 +0000 (15:45 -0700)
Source kernel commit: 069cf5e32b700f94c6ac60f6171662bdfb04f325

__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: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/xfs_ag.c

index a9993215bf9a3009d07e9af4f701c2a2eb334ce3..a22c2be153a50cd6466d7a54adccb947fe252930 100644 (file)
@@ -284,7 +284,7 @@ xfs_initialize_perag(
        int                     error;
 
        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;