]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: refactor btree node scrubbing
authorChristoph Hellwig <hch@lst.de>
Fri, 8 Nov 2019 22:52:07 +0000 (14:52 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 11 Nov 2019 00:54:19 +0000 (16:54 -0800)
commit8c1dba19c62b79fc4f0645ac9ed6fe444ea15579
treec091fd268a09ab96f46971b1a84cf7f17abb1b24
parent679b03e1869b4915d80ec7e1ef2105124e461697
xfs: refactor btree node scrubbing

Break up xchk_da_btree_entry and handle looking up leaf node entries
in the attr / dir callbacks, so that only the generic node handling
is left in the common core code.  Note that the checks for the crc
enabled blocks are removed, as the scrubbing code already remaps the
magic numbers earlier.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/scrub/attr.c
fs/xfs/scrub/dabtree.c
fs/xfs/scrub/dabtree.h
fs/xfs/scrub/dir.c