]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: use buf ops magic to detect btree block type
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 6 Feb 2019 18:20:54 +0000 (10:20 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 12 Feb 2019 00:07:01 +0000 (16:07 -0800)
commita08ba26c761c3924c059b2de687ede2143327c18
treef95e10241beb983ea203c4da1b9483855c8abf0b
parent34b053cc531cbb7e33036c2170b6ba33f9741659
xfs: use buf ops magic to detect btree block type

Now that we encode block magic numbers in all the buffer ops, use that
for block type detection in the ag header repair code instead of
encoding magics directly in the repair code.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/scrub/agheader_repair.c
fs/xfs/scrub/repair.c
fs/xfs/scrub/repair.h