OSDN Git Service

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)
commit649d9d98c60ec5e76e2a3c010f21667746765e9c
treec091fd268a09ab96f46971b1a84cf7f17abb1b24
parentb16be561876ed9b72dcb2bf8c48b30f573f63c1c
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