xfs: move recovery needed state updates to xfs_log_mount_finish
authorDave Chinner <dchinner@redhat.com>
Wed, 11 Aug 2021 00:59:02 +0000 (17:59 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 16 Aug 2021 19:09:28 +0000 (12:09 -0700)
commitfd67d8a07208ab06560287b7b9334c2d50b7d6d7
treea2bd2ba672581b6ab91a75d6364d48085c5090ef
parent5112e2067bd94bd56aace4c7e4d45ff13b9152f8
xfs: move recovery needed state updates to xfs_log_mount_finish

xfs_log_mount_finish() needs to know if recovery is needed or not to
make decisions on whether to flush the log and AIL.  Move the
handling of the NEED_RECOVERY state out to this function rather than
needing a temporary variable to store this state over the call to
xlog_recover_finish().

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