libxfs: refactor short btree block verification
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 4 Jan 2016 05:13:21 +0000 (16:13 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 4 Jan 2016 05:13:21 +0000 (16:13 +1100)
commitc5ab131ba0df8c1f1f52ffa6214d60aafeeddbd0
tree84b78b9a7026519bca6ee11778377c97eb02d5f4
parent96f859d52bcb1c6ea6f3388d39862bf7143e2f30
libxfs: refactor short btree block verification

Create xfs_btree_sblock_verify() to verify short-format btree blocks
(i.e. the per-AG btrees with 32-bit block pointers) instead of
open-coding them.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_alloc_btree.c
fs/xfs/libxfs/xfs_btree.c
fs/xfs/libxfs/xfs_btree.h
fs/xfs/libxfs/xfs_ialloc_btree.c