diff options
Diffstat (limited to 'fs/xfs/xfs_log.c')
-rw-r--r-- | fs/xfs/xfs_log.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c index 4184085d44af..31fbb2eea092 100644 --- a/fs/xfs/xfs_log.c +++ b/fs/xfs/xfs_log.c | |||
@@ -909,7 +909,7 @@ xfs_log_need_covered(xfs_mount_t *mp) | |||
909 | spin_lock(&log->l_icloglock); | 909 | spin_lock(&log->l_icloglock); |
910 | if (((log->l_covered_state == XLOG_STATE_COVER_NEED) || | 910 | if (((log->l_covered_state == XLOG_STATE_COVER_NEED) || |
911 | (log->l_covered_state == XLOG_STATE_COVER_NEED2)) | 911 | (log->l_covered_state == XLOG_STATE_COVER_NEED2)) |
912 | && !xfs_trans_first_ail(mp, NULL) | 912 | && !xfs_trans_ail_tail(mp->m_ail) |
913 | && xlog_iclogs_empty(log)) { | 913 | && xlog_iclogs_empty(log)) { |
914 | if (log->l_covered_state == XLOG_STATE_COVER_NEED) | 914 | if (log->l_covered_state == XLOG_STATE_COVER_NEED) |
915 | log->l_covered_state = XLOG_STATE_COVER_DONE; | 915 | log->l_covered_state = XLOG_STATE_COVER_DONE; |
@@ -946,7 +946,7 @@ xlog_assign_tail_lsn(xfs_mount_t *mp) | |||
946 | xfs_lsn_t tail_lsn; | 946 | xfs_lsn_t tail_lsn; |
947 | xlog_t *log = mp->m_log; | 947 | xlog_t *log = mp->m_log; |
948 | 948 | ||
949 | tail_lsn = xfs_trans_tail_ail(mp); | 949 | tail_lsn = xfs_trans_ail_tail(mp->m_ail); |
950 | spin_lock(&log->l_grant_lock); | 950 | spin_lock(&log->l_grant_lock); |
951 | if (tail_lsn != 0) { | 951 | if (tail_lsn != 0) { |
952 | log->l_tail_lsn = tail_lsn; | 952 | log->l_tail_lsn = tail_lsn; |