]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: collapse xlog_state_set_callback in caller
authorDave Chinner <dchinner@redhat.com>
Tue, 16 Jul 2024 21:50:20 +0000 (14:50 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:17:10 +0000 (17:17 -0700)
commit8dabc8faaa573257c10640b09dc68033bd0d468b
treea77968c39b5144a9c6f1650e4e6a4276a8cde972
parente2c077538dedb0f3298270b9ab1fa0d0b9ddfd31
xfs: collapse xlog_state_set_callback in caller

The function is called from a single place, and it isn't just
setting the iclog state to XLOG_STATE_CALLBACK - it can mark iclogs
clean, which moves them to states after CALLBACK. Hence the function
is now badly named, and should just be folded into the caller where
the iclog completion logic makes a whole lot more sense.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/xfs_log.c