xfs: refactor xlog_recover_process_iunlinks()
authorDave Chinner <dchinner@redhat.com>
Thu, 14 Jul 2022 01:42:39 +0000 (11:42 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 14 Jul 2022 01:42:39 +0000 (11:42 +1000)
commit04755d2e5821b3afbaadd09fe5df58d04de36484
tree9905c4c88f2c839c8888cb88ab6e8fd999fd6b47
parent4fcc94d653270fcc7800dbaf3b11f78cb462b293
xfs: refactor xlog_recover_process_iunlinks()

For upcoming changes to the way inode unlinked list processing is
done, the structure of recovery needs to change slightly. We also
really need to untangle the messy error handling in list recovery
so that actions like emptying the bucket on inode lookup failure
are associated with the bucket list walk failing, not failing
to look up the inode.

Refactor the recovery code now to keep the re-organisation seperate
to the algorithm changes.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/xfs_log_recover.c