]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: factor out a xlog_write_space_advance helper xfs-log-cleanups
authorChristoph Hellwig <hch@lst.de>
Mon, 14 Jul 2025 05:37:24 +0000 (07:37 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 15 Jul 2025 12:26:44 +0000 (14:26 +0200)
commita308943e974d17adec61e257f0e4392edf3ccc55
tree6f4d603129bd93e33b4aa592e3ec5df13dba04df
parent329c7a2241fae635925e1fbc57e9298cd1189175
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>
fs/xfs/xfs_log.c