xfs: create a xchk_trans_alloc_empty helper for scrub
authorDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:30:52 +0000 (12:30 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:30:52 +0000 (12:30 -0800)
commit564fee6d20537eec2be2e74c8d829c654d6d8855
tree6051467b30178dae5d25df0eee35cb5b52d265d0
parent3d8f1426977f1bf10f867bcd26df6518ae6c2b2c
xfs: create a xchk_trans_alloc_empty helper for scrub

Create a helper to initialize empty transactions on behalf of a scrub
operation.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/scrub/common.c
fs/xfs/scrub/common.h
fs/xfs/scrub/fscounters.c