]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: support lowmode allocations in xfs_bmap_exact_minlen_extent_alloc
authorChristoph Hellwig <hch@lst.de>
Mon, 21 Oct 2024 00:10:48 +0000 (17:10 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 31 Oct 2024 22:45:04 +0000 (15:45 -0700)
commit43f4e9bef3f5dc5e9c3d55ca30c33233d54b8ed7
treecb1fff365c5c742ec8db6ce04f293a0af78477a1
parent31f5b24c3e42ce9b1e18a980842ad71f3b1c592a
xfs: support lowmode allocations in xfs_bmap_exact_minlen_extent_alloc

Source kernel commit: 6aac77059881e4419df499392c995bf02fb9630b

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>
libxfs/xfs_bmap.c