]> Git Repo - linux.git/commitdiff
xfs: don't use __GFP_RETRY_MAYFAIL in xfs_initialize_perag
authorChristoph Hellwig <[email protected]>
Mon, 14 Oct 2024 06:04:54 +0000 (08:04 +0200)
committerCarlos Maiolino <[email protected]>
Tue, 22 Oct 2024 11:37:18 +0000 (13:37 +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 <[email protected]>
Reviewed-by: Brian Foster <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Carlos Maiolino <[email protected]>
fs/xfs/libxfs/xfs_ag.c

index 8ace2cc200a60e8b979e3dc86183c19d7564645f..25cec9dc10c9411a2dd714c9b4a8e0bf3024307b 100644 (file)
@@ -286,7 +286,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;
This page took 0.058783 seconds and 4 git commands to generate.