OSDN Git Service

xfs: hoist setting of XFS_LI_RECOVERED to caller
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 1 May 2020 23:00:55 +0000 (16:00 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 8 May 2020 15:50:01 +0000 (08:50 -0700)
commitcc560a5a9540be2d907c0c170e29ebde98d13d63
treed284a26b972247375195c4bc9f3c028d71e25ea2
parent96b60f826713767f222254418c995fb6fd7596b3
xfs: hoist setting of XFS_LI_RECOVERED to caller

The only purpose of XFS_LI_RECOVERED is to prevent log recovery from
trying to replay recovered intents more than once.  Therefore, we can
move the bit setting up to the ->iop_recover caller.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_bmap_item.c
fs/xfs/xfs_extfree_item.c
fs/xfs/xfs_log_recover.c
fs/xfs/xfs_refcount_item.c
fs/xfs/xfs_rmap_item.c