]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit83cf0e96b50492792b2e841463460c30112c83d2
tree9905c4c88f2c839c8888cb88ab6e8fd999fd6b47
parent015f90686de9c8e4576561cf26529b92a89aca7e
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