xfs: create subordinate scrub contexts for xchk_metadata_inode_subtype
authorDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:55:06 +0000 (14:55 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:59:00 +0000 (14:59 -0700)
commit1a5f6e08d4e379a23da5be974aee50b26a20c5b0
treef6ccd2cd5461c1760cb13f7bf3bff9087d080e54
parent5f204051d998ec3d7306db0d749bddcbf4c97693
xfs: create subordinate scrub contexts for xchk_metadata_inode_subtype

When a file-based metadata structure is being scrubbed in
xchk_metadata_inode_subtype, we should create an entirely new scrub
context so that each scrubber doesn't trip over another's buffers.

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