diff options
Diffstat (limited to 'fs/xfs/xfs_log.c')
-rw-r--r-- | fs/xfs/xfs_log.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c index a2f7422a749f..405a41ab6855 100644 --- a/fs/xfs/xfs_log.c +++ b/fs/xfs/xfs_log.c | |||
@@ -572,6 +572,7 @@ xfs_log_mount( | |||
572 | cmn_err(CE_WARN, "XFS: AIL initialisation failed: error %d", error); | 572 | cmn_err(CE_WARN, "XFS: AIL initialisation failed: error %d", error); |
573 | goto error; | 573 | goto error; |
574 | } | 574 | } |
575 | mp->m_log->l_ailp = mp->m_ail; | ||
575 | 576 | ||
576 | /* | 577 | /* |
577 | * skip log recovery on a norecovery mount. pretend it all | 578 | * skip log recovery on a norecovery mount. pretend it all |
@@ -908,7 +909,7 @@ xfs_log_need_covered(xfs_mount_t *mp) | |||
908 | spin_lock(&log->l_icloglock); | 909 | spin_lock(&log->l_icloglock); |
909 | if (((log->l_covered_state == XLOG_STATE_COVER_NEED) || | 910 | if (((log->l_covered_state == XLOG_STATE_COVER_NEED) || |
910 | (log->l_covered_state == XLOG_STATE_COVER_NEED2)) | 911 | (log->l_covered_state == XLOG_STATE_COVER_NEED2)) |
911 | && !xfs_trans_ail_tail(mp->m_ail) | 912 | && !xfs_trans_ail_tail(log->l_ailp) |
912 | && xlog_iclogs_empty(log)) { | 913 | && xlog_iclogs_empty(log)) { |
913 | if (log->l_covered_state == XLOG_STATE_COVER_NEED) | 914 | if (log->l_covered_state == XLOG_STATE_COVER_NEED) |
914 | log->l_covered_state = XLOG_STATE_COVER_DONE; | 915 | log->l_covered_state = XLOG_STATE_COVER_DONE; |