xfs: split up allocation btree verifier
authorBrian Foster <bfoster@redhat.com>
Thu, 7 Feb 2019 18:45:47 +0000 (10:45 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 12 Feb 2019 00:07:01 +0000 (16:07 -0800)
commit27df4f5045fc68766980c4dfba5ffc9ad1f71ebb
treee3a9f981dda44a14ced4f7e7287f2bd70091ab39
parent8473fee340e37711b9ac6a5cc591305ccaaa4778
xfs: split up allocation btree verifier

Similar to the inode btree verifier, the same allocation btree
verifier structure is shared between the by-bno (bnobt) and by-size
(cntbt) btrees. This prevents the ability to distinguish magic
values between them. Separate the verifier into two, one for each
tree, and assign them appropriately. No functional changes.

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