]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: support lowmode allocations in xfs_bmap_exact_minlen_extent_alloc
authorChristoph Hellwig <hch@lst.de>
Wed, 18 Sep 2024 05:30:10 +0000 (07:30 +0200)
committerCarlos Maiolino <cem@kernel.org>
Mon, 7 Oct 2024 06:00:12 +0000 (08:00 +0200)
commit6aac77059881e4419df499392c995bf02fb9630b
treeb7eb8cd21d72ef2112d00fb4a84c0b96f3e197ed
parent405ee87c6938f67e6ab62a3f8f85b3c60a093886
xfs: support lowmode allocations in xfs_bmap_exact_minlen_extent_alloc

Currently the debug-only xfs_bmap_exact_minlen_extent_alloc allocation
variant fails to drop into the lowmode last resort allocator, and
thus can sometimes fail allocations for which the caller has a
transaction block reservation.

Fix this by using xfs_bmap_btalloc_low_space to do the actual allocation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/libxfs/xfs_bmap.c