summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_log.h
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2018-08-01 16:40:48 +0200
committerDarrick J. Wong <darrick.wong@oracle.com>2018-08-01 16:40:48 +0200
commit0c60d3aa0e2d007e7f79c96c118da25f594afe02 (patch)
tree7cbb2e92dcdfa9119f9a982ca5d0e7e8e51af868 /fs/xfs/xfs_log.h
parentxfs: move extent busy tree initialization to xfs_initialize_perag (diff)
downloadlinux-0c60d3aa0e2d007e7f79c96c118da25f594afe02.tar.xz
linux-0c60d3aa0e2d007e7f79c96c118da25f594afe02.zip
xfs: refactor log recovery check
Add a predicate to decide if the log is actively in recovery and use that instead of open-coding a pagf_init check in the attr leaf verifier. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_log.h')
-rw-r--r--fs/xfs/xfs_log.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_log.h b/fs/xfs/xfs_log.h
index 3c1f6a8b4b70..73a64bf32f6f 100644
--- a/fs/xfs/xfs_log.h
+++ b/fs/xfs/xfs_log.h
@@ -153,5 +153,6 @@ bool xfs_log_item_in_current_chkpt(struct xfs_log_item *lip);
void xfs_log_work_queue(struct xfs_mount *mp);
void xfs_log_quiesce(struct xfs_mount *mp);
bool xfs_log_check_lsn(struct xfs_mount *, xfs_lsn_t);
+bool xfs_log_in_recovery(struct xfs_mount *);
#endif /* __XFS_LOG_H__ */