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

xfs_trans_roll uses xfs_trans_reserve to basically just call into
xfs_log_regrant while bypassing the reset of xfs_trans_reserve.

Open code the call to xfs_log_regrant in xfs_trans_roll and simplify
xfs_trans_reserve now that it never regrants and always asks for a log
reservation.

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