Skip to content

Commit 069cf5e

Browse files
Christoph Hellwigcmaiolino
authored andcommitted
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 <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>
1 parent b882b0f commit 069cf5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/xfs/libxfs/xfs_ag.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ xfs_initialize_perag(
286286
int error;
287287

288288
for (index = old_agcount; index < new_agcount; index++) {
289-
pag = kzalloc(sizeof(*pag), GFP_KERNEL | __GFP_RETRY_MAYFAIL);
289+
pag = kzalloc(sizeof(*pag), GFP_KERNEL);
290290
if (!pag) {
291291
error = -ENOMEM;
292292
goto out_unwind_new_pags;

0 commit comments

Comments
 (0)