]> git.ipfire.org Git - thirdparty/linux.git/commit
xfs: factor out a xlog_write_space_advance helper
authorChristoph Hellwig <hch@lst.de>
Wed, 12 Nov 2025 12:14:26 +0000 (13:14 +0100)
committerCarlos Maiolino <cem@kernel.org>
Wed, 21 Jan 2026 11:57:16 +0000 (12:57 +0100)
commita10b44cf1018f5f94d5a4caefef581d181c70f5d
tree22fb0156fd0003a6ab3870462f734e742c317947
parente2663443da71445a0c847199480b6a53ddec35e5
xfs: factor out a xlog_write_space_advance helper

Add a new xlog_write_space_advance that returns the current place in the
iclog that data is written to, and advances the various counters by the
amount taken from xlog_write_iovec, and also use it xlog_write_partial,
which open codes the counter adjustments, but misses the asserts.

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_log.c