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)
commit9228d751ebf9c7876902db6458a33c26674f7ccc
treef95e10241beb983ea203c4da1b9483855c8abf0b
parent4260baac629e15723574f42c5c9ba13cb037db8e
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