From: Christoph Hellwig Date: Mon, 14 Oct 2024 06:04:54 +0000 (+0200) Subject: xfs: don't use __GFP_RETRY_MAYFAIL in xfs_initialize_perag X-Git-Tag: v6.12-rc5~6^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=069cf5e32b700f94c6ac60f6171662bdfb04f325;p=thirdparty%2Fkernel%2Flinux.git xfs: don't use __GFP_RETRY_MAYFAIL in xfs_initialize_perag __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 --- diff --git a/fs/xfs/libxfs/xfs_ag.c b/fs/xfs/libxfs/xfs_ag.c index 8ace2cc200a60..25cec9dc10c94 100644 --- a/fs/xfs/libxfs/xfs_ag.c +++ b/fs/xfs/libxfs/xfs_ag.c @@ -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;