xfs: hoist recovered extent-free intent checks out of xfs_efi_item_recover
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 30 Nov 2020 00:33:38 +0000 (16:33 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 9 Dec 2020 17:49:38 +0000 (09:49 -0800)
commit3c15df3de0e2bcc4390aa95c60fd12edb7f12bdd
treefa3ee1ca9f96c813798118bf71efcf073296e72e
parent0d79781a1aa6a6a567e63294012eee2384f406f2
xfs: hoist recovered extent-free intent checks out of xfs_efi_item_recover

When we recover a extent-free intent from the log, we need to validate
its contents before we try to replay them.  Hoist the checking code into
a separate function in preparation to refactor this code to use
validation helpers.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/xfs_extfree_item.c