list_add_tail(&tic->t_queue, &head->waiters);
 
        do {
-               if (XLOG_FORCED_SHUTDOWN(log))
+               if (xlog_is_shutdown(log))
                        goto shutdown;
                xlog_grant_push_ail(log, need_bytes);
 
                trace_xfs_log_grant_wake(log, tic);
 
                spin_lock(&head->lock);
-               if (XLOG_FORCED_SHUTDOWN(log))
+               if (xlog_is_shutdown(log))
                        goto shutdown;
        } while (xlog_space_left(log, &head->grant) < need_bytes);
 
                return false;
        if (xfs_readonly_buftarg(mp->m_log->l_targ))
                return false;
-       if (XFS_FORCED_SHUTDOWN(mp))
+       if (xlog_is_shutdown(mp->m_log))
                return false;
        return true;
 }
        int                     need_bytes;
        int                     error = 0;
 
-       if (XLOG_FORCED_SHUTDOWN(log))
+       if (xlog_is_shutdown(log))
                return -EIO;
 
        XFS_STATS_INC(mp, xs_try_logspace);
 
        ASSERT(client == XFS_TRANSACTION || client == XFS_LOG);
 
-       if (XLOG_FORCED_SHUTDOWN(log))
+       if (xlog_is_shutdown(log))
                return -EIO;
 
        XFS_STATS_INC(mp, xs_try_logspace);
        struct xlog             *log = iclog->ic_log;
 
        trace_xlog_iclog_wait_on(iclog, _RET_IP_);
-       if (!XLOG_FORCED_SHUTDOWN(log) &&
+       if (!xlog_is_shutdown(log) &&
            iclog->ic_state != XLOG_STATE_ACTIVE &&
            iclog->ic_state != XLOG_STATE_DIRTY) {
                XFS_STATS_INC(log->l_mp, xs_log_force_sleep);
                spin_unlock(&log->l_icloglock);
        }
 
-       if (XLOG_FORCED_SHUTDOWN(log))
+       if (xlog_is_shutdown(log))
                return -EIO;
        return 0;
 }
 
        xfs_log_force(mp, XFS_LOG_SYNC);
 
-       if (XLOG_FORCED_SHUTDOWN(log))
+       if (xlog_is_shutdown(log))
                return;
 
        /*
        struct xlog             *log = mp->m_log;
        int                     free_bytes;
 
-       if (XLOG_FORCED_SHUTDOWN(log))
+       if (xlog_is_shutdown(log))
                return;
 
        if (!list_empty_careful(&log->l_write_head.waiters)) {
 
        ASSERT((xlog_cil_empty(mp->m_log) && xlog_iclogs_empty(mp->m_log) &&
                !xfs_ail_min_lsn(mp->m_log->l_ailp)) ||
-              XFS_FORCED_SHUTDOWN(mp));
+               xlog_is_shutdown(mp->m_log));
 
        if (!xfs_log_writable(mp))
                return 0;
        };
        int     error;
 
-       if (XLOG_FORCED_SHUTDOWN(log))
+       if (xlog_is_shutdown(log))
                return -EIO;
 
        error = xlog_write(log, &vec, ticket, lsn, iclog, XLOG_COMMIT_TRANS);
        xfs_lsn_t       threshold_lsn;
 
        threshold_lsn = xlog_grant_push_threshold(log, need_bytes);
-       if (threshold_lsn == NULLCOMMITLSN || XLOG_FORCED_SHUTDOWN(log))
+       if (threshold_lsn == NULLCOMMITLSN || xlog_is_shutdown(log))
                return;
 
        /*
                        cycled_icloglock = true;
 
                        spin_lock(&log->l_icloglock);
-                       if (XLOG_FORCED_SHUTDOWN(log))
+                       if (xlog_is_shutdown(log))
                                wake_up_all(&iclog->ic_force_wait);
                        else
                                xlog_state_clean_iclog(log, iclog);
         * split log writes, on the second, we shut down the file system and
         * no iclogs should ever be attempted to be written to disk again.
         */
-       if (!XLOG_FORCED_SHUTDOWN(log)) {
+       if (!xlog_is_shutdown(log)) {
                ASSERT(iclog->ic_state == XLOG_STATE_SYNCING);
                iclog->ic_state = XLOG_STATE_DONE_SYNC;
        }
 
 restart:
        spin_lock(&log->l_icloglock);
-       if (XLOG_FORCED_SHUTDOWN(log)) {
+       if (xlog_is_shutdown(log)) {
                spin_unlock(&log->l_icloglock);
                return -EIO;
        }
         * No need to get locks for this.
         */
        if (logerror && log->l_iclog->ic_state == XLOG_STATE_IOERROR) {
-               ASSERT(XLOG_FORCED_SHUTDOWN(log));
+               ASSERT(xlog_is_shutdown(log));
                return 1;
        }
 
 
        struct xfs_cil_ctx      *ctx)
 {
        struct xfs_mount        *mp = ctx->cil->xc_log->l_mp;
-       bool                    abort = XLOG_FORCED_SHUTDOWN(ctx->cil->xc_log);
+       bool                    abort = xlog_is_shutdown(ctx->cil->xc_log);
 
        /*
         * If the I/O failed, we're aborting the commit and already shutdown.
                 * shutdown, but then went back to sleep once already in the
                 * shutdown state.
                 */
-               if (XLOG_FORCED_SHUTDOWN(log)) {
+               if (xlog_is_shutdown(log)) {
                        spin_unlock(&cil->xc_push_lock);
                        goto out_abort_free_ticket;
                }
 out_abort_free_ticket:
        xfs_log_ticket_ungrant(log, tic);
 out_abort:
-       ASSERT(XLOG_FORCED_SHUTDOWN(log));
+       ASSERT(xlog_is_shutdown(log));
        xlog_cil_committed(ctx);
 }
 
 
        xlog_cil_insert_items(log, tp);
 
-       if (regrant && !XLOG_FORCED_SHUTDOWN(log))
+       if (regrant && !xlog_is_shutdown(log))
                xfs_log_ticket_regrant(log, tp->t_ticket);
        else
                xfs_log_ticket_ungrant(log, tp->t_ticket);
                 * shutdown, but then went back to sleep once already in the
                 * shutdown state.
                 */
-               if (XLOG_FORCED_SHUTDOWN(log))
+               if (xlog_is_shutdown(log))
                        goto out_shutdown;
                if (ctx->sequence > sequence)
                        continue;
 
 
        error = xfs_rw_bdev(log->l_targ->bt_bdev, log->l_logBBstart + blk_no,
                        BBTOB(nbblks), data, op);
-       if (error && !XFS_FORCED_SHUTDOWN(log->l_mp)) {
+       if (error && !xlog_is_shutdown(log)) {
                xfs_alert(log->l_mp,
                          "log recovery %s I/O error at daddr 0x%llx len %d error %d",
                          op == REQ_OP_WRITE ? "write" : "read",
        if (error)
                return error;
 
-       /*
-        * If IO errors happened during recovery, bail out.
-        */
-       if (XFS_FORCED_SHUTDOWN(mp))
+       if (xlog_is_shutdown(log))
                return -EIO;
 
        /*
        xfs_buf_hold(bp);
        error = _xfs_buf_read(bp, XBF_READ);
        if (error) {
-               if (!XFS_FORCED_SHUTDOWN(mp)) {
+               if (!xlog_is_shutdown(log)) {
                        xfs_buf_ioerror_alert(bp, __this_address);
                        ASSERT(0);
                }