xfs: hoist recovered bmap intent checks out of xfs_bui_item_recover
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 30 Nov 2020 00:33:35 +0000 (16:33 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 9 Dec 2020 17:49:38 +0000 (09:49 -0800)
commitbc525cf455dac810d28f9edd379805dc249bc5a9
tree131390f49a9b815a49732b5b547dee31193596cc
parent96f65bad7c31557c28468ba8c1896c7dd7a6bbfa
xfs: hoist recovered bmap intent checks out of xfs_bui_item_recover

When we recover a bmap 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_bmap_item.c