]> git.ipfire.org Git - thirdparty/linux.git/commit
xfs: don't use xfs_trans_reserve in xfs_trans_reserve_more
authorChristoph Hellwig <hch@lst.de>
Wed, 16 Jul 2025 12:43:12 +0000 (14:43 +0200)
committerCarlos Maiolino <cem@kernel.org>
Thu, 24 Jul 2025 15:30:13 +0000 (17:30 +0200)
commitf1cc16e1547e7be4245755be27bb11027344b4d0
treec90f9349102c4e7aad33cf744a4084fd4adc1c5c
parent736b576d4d9836318ef890093e3b37c35619cfdf
xfs: don't use xfs_trans_reserve in xfs_trans_reserve_more

xfs_trans_reserve_more just tries to allocate additional blocks and/or
rtextents and is otherwise unrelated to the transaction reservation
logic.  Open code the block and rtextent reservation in
xfs_trans_reserve_more to prepare for simplifying xfs_trans_reserve.

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/xfs_trans.c