xfs: hoist inode record alignment checks from scrub
authorDarrick J. Wong <djwong@kernel.org>
Wed, 12 Apr 2023 02:00:06 +0000 (19:00 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 12 Apr 2023 02:00:06 +0000 (19:00 -0700)
commitde1a9ce225e93b22d189f8ffbce20074bc803121
treed289bc32456212447a7cbfe91e19483be5e40e58
parente774b2ea0bb130d00e3cb1c29cd91028d0c0c83d
xfs: hoist inode record alignment checks from scrub

Move the inobt record alignment checks from xchk_iallocbt_rec into
xfs_inobt_check_irec so that they are applied everywhere.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/libxfs/xfs_ialloc.c
fs/xfs/scrub/ialloc.c