aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/xfs/xfs_log.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c
index e523396753c5..49dd41e6a2dc 100644
--- a/fs/xfs/xfs_log.c
+++ b/fs/xfs/xfs_log.c
@@ -3710,11 +3710,9 @@ xlog_verify_iclog(
3710 /* check validity of iclog pointers */ 3710 /* check validity of iclog pointers */
3711 spin_lock(&log->l_icloglock); 3711 spin_lock(&log->l_icloglock);
3712 icptr = log->l_iclog; 3712 icptr = log->l_iclog;
3713 for (i=0; i < log->l_iclog_bufs; i++) { 3713 for (i = 0; i < log->l_iclog_bufs; i++, icptr = icptr->ic_next)
3714 if (icptr == NULL) 3714 ASSERT(icptr);
3715 xfs_emerg(log->l_mp, "%s: invalid ptr", __func__); 3715
3716 icptr = icptr->ic_next;
3717 }
3718 if (icptr != log->l_iclog) 3716 if (icptr != log->l_iclog)
3719 xfs_emerg(log->l_mp, "%s: corrupt iclog ring", __func__); 3717 xfs_emerg(log->l_mp, "%s: corrupt iclog ring", __func__);
3720 spin_unlock(&log->l_icloglock); 3718 spin_unlock(&log->l_icloglock);