From 4b7c32f74e83520a317d6f62b78bad4e24f5b6e4 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Sun, 27 Oct 2024 22:11:48 -0700 Subject: [PATCH] xfs: don't use __GFP_RETRY_MAYFAIL in xfs_initialize_perag 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 Reviewed-by: Brian Foster Reviewed-by: Darrick J. Wong Signed-off-by: Carlos Maiolino --- libxfs/xfs_ag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libxfs/xfs_ag.c b/libxfs/xfs_ag.c index a9993215b..a22c2be15 100644 --- a/libxfs/xfs_ag.c +++ b/libxfs/xfs_ag.c @@ -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; -- 2.39.5