diff options
| author | Christoph Hellwig <hch@lst.de> | 2025-02-05 13:40:21 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-27 04:10:43 -0800 |
| commit | 7a2c24661db663906b9a26a2dafe1c647bd8adaf (patch) | |
| tree | 75f98510b7ccbf68e4e24602e1f949f2a7221595 /fs | |
| parent | 5a9f8279988baa047d27092139cc08a0d120e330 (diff) | |
| download | linux-7a2c24661db663906b9a26a2dafe1c647bd8adaf.tar.gz linux-7a2c24661db663906b9a26a2dafe1c647bd8adaf.tar.bz2 linux-7a2c24661db663906b9a26a2dafe1c647bd8adaf.zip | |
xfs: don't use __GFP_RETRY_MAYFAIL in xfs_initialize_perag
commit 069cf5e32b700f94c6ac60f6171662bdfb04f325 upstream.
[backport: uses kmem_zalloc instead of kzalloc]
__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>
Signed-off-by: Catherine Hoang <catherine.hoang@oracle.com>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/xfs/libxfs/xfs_ag.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_ag.c b/fs/xfs/libxfs/xfs_ag.c index b75928dc1866..ec875409818d 100644 --- a/fs/xfs/libxfs/xfs_ag.c +++ b/fs/xfs/libxfs/xfs_ag.c @@ -370,7 +370,7 @@ xfs_initialize_perag( int error; for (index = old_agcount; index < new_agcount; index++) { - pag = kmem_zalloc(sizeof(*pag), KM_MAYFAIL); + pag = kmem_zalloc(sizeof(*pag), 0); if (!pag) { error = -ENOMEM; goto out_unwind_new_pags; |
