xfs: hoist recovered rmap intent checks out of xfs_rui_item_recover
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 30 Nov 2020 00:33:36 +0000 (16:33 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 9 Dec 2020 17:49:38 +0000 (09:49 -0800)
commitdda7ba65bf03b6f3a7502b9f85c2524a5ae5aa2e
tree13b5d386009f884bfcbd7d134d7200b927e06f22
parent67d8679bd3913d2c4ec5f32ade778881b93af766
xfs: hoist recovered rmap intent checks out of xfs_rui_item_recover

When we recover a rmap 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_rmap_item.c