Lines Matching refs:ic_state
527 abortflg = (iclog->ic_state & XLOG_STATE_IOERROR); in xfs_log_notify()
529 ASSERT_ALWAYS((iclog->ic_state == XLOG_STATE_ACTIVE) || in xfs_log_notify()
530 (iclog->ic_state == XLOG_STATE_WANT_SYNC)); in xfs_log_notify()
700 if (!(iclog->ic_state & XLOG_STATE_IOERROR)) { in xfs_log_unmount_write()
701 ASSERT(iclog->ic_state & XLOG_STATE_ACTIVE); in xfs_log_unmount_write()
753 if (!(iclog->ic_state == XLOG_STATE_ACTIVE || in xfs_log_unmount_write()
754 iclog->ic_state == XLOG_STATE_DIRTY)) { in xfs_log_unmount_write()
793 if ( ! ( iclog->ic_state == XLOG_STATE_ACTIVE in xfs_log_unmount_write()
794 || iclog->ic_state == XLOG_STATE_DIRTY in xfs_log_unmount_write()
795 || iclog->ic_state == XLOG_STATE_IOERROR) ) { in xfs_log_unmount_write()
1020 } else if (iclog->ic_state & XLOG_STATE_IOERROR) { in xlog_iodone()
1228 iclog->ic_state = XLOG_STATE_ACTIVE; in xlog_alloc_log()
1373 if (iclog->ic_state & XLOG_STATE_IOERROR) { in xlog_bdstrat()
2130 if (iclog->ic_state == XLOG_STATE_DIRTY) { in xlog_state_clean_log()
2131 iclog->ic_state = XLOG_STATE_ACTIVE; in xlog_state_clean_log()
2158 } else if (iclog->ic_state == XLOG_STATE_ACTIVE) in xlog_state_clean_log()
2211 if (!(lsn_log->ic_state & (XLOG_STATE_ACTIVE|XLOG_STATE_DIRTY))) { in xlog_get_lowest_lsn()
2266 if (iclog->ic_state & in xlog_state_do_callback()
2279 if (!(iclog->ic_state & XLOG_STATE_IOERROR)) { in xlog_state_do_callback()
2290 if (!(iclog->ic_state & in xlog_state_do_callback()
2293 if (ciclog && (ciclog->ic_state == in xlog_state_do_callback()
2295 ciclog->ic_state = XLOG_STATE_DO_CALLBACK; in xlog_state_do_callback()
2322 iclog->ic_state = XLOG_STATE_CALLBACK; in xlog_state_do_callback()
2369 if (!(iclog->ic_state & XLOG_STATE_IOERROR)) in xlog_state_do_callback()
2370 iclog->ic_state = XLOG_STATE_DIRTY; in xlog_state_do_callback()
2401 ASSERT(iclog->ic_state != XLOG_STATE_DO_CALLBACK); in xlog_state_do_callback()
2411 if (iclog->ic_state == XLOG_STATE_WANT_SYNC || in xlog_state_do_callback()
2412 iclog->ic_state == XLOG_STATE_SYNCING || in xlog_state_do_callback()
2413 iclog->ic_state == XLOG_STATE_DONE_SYNC || in xlog_state_do_callback()
2414 iclog->ic_state == XLOG_STATE_IOERROR ) in xlog_state_do_callback()
2421 if (log->l_iclog->ic_state & (XLOG_STATE_ACTIVE|XLOG_STATE_IOERROR)) in xlog_state_do_callback()
2452 ASSERT(iclog->ic_state == XLOG_STATE_SYNCING || in xlog_state_done_syncing()
2453 iclog->ic_state == XLOG_STATE_IOERROR); in xlog_state_done_syncing()
2464 if (iclog->ic_state != XLOG_STATE_IOERROR) { in xlog_state_done_syncing()
2469 iclog->ic_state = XLOG_STATE_DONE_SYNC; in xlog_state_done_syncing()
2522 if (iclog->ic_state != XLOG_STATE_ACTIVE) { in xlog_state_get_iclog_space()
2703 if (iclog->ic_state & XLOG_STATE_IOERROR) in xlog_state_release_iclog()
2710 if (iclog->ic_state & XLOG_STATE_IOERROR) { in xlog_state_release_iclog()
2714 ASSERT(iclog->ic_state == XLOG_STATE_ACTIVE || in xlog_state_release_iclog()
2715 iclog->ic_state == XLOG_STATE_WANT_SYNC); in xlog_state_release_iclog()
2717 if (iclog->ic_state == XLOG_STATE_WANT_SYNC) { in xlog_state_release_iclog()
2721 iclog->ic_state = XLOG_STATE_SYNCING; in xlog_state_release_iclog()
2753 ASSERT(iclog->ic_state == XLOG_STATE_ACTIVE); in xlog_state_switch_iclogs()
2756 iclog->ic_state = XLOG_STATE_WANT_SYNC; in xlog_state_switch_iclogs()
2826 if (iclog->ic_state & XLOG_STATE_IOERROR) { in _xfs_log_force()
2834 if (iclog->ic_state == XLOG_STATE_ACTIVE || in _xfs_log_force()
2835 iclog->ic_state == XLOG_STATE_DIRTY) { in _xfs_log_force()
2843 if (iclog->ic_state == XLOG_STATE_DIRTY || in _xfs_log_force()
2847 if (iclog->ic_state == XLOG_STATE_ACTIVE || in _xfs_log_force()
2848 iclog->ic_state == XLOG_STATE_DIRTY) in _xfs_log_force()
2872 iclog->ic_state != XLOG_STATE_DIRTY) in _xfs_log_force()
2900 if (iclog->ic_state & XLOG_STATE_IOERROR) { in _xfs_log_force()
2911 if (iclog->ic_state & XLOG_STATE_IOERROR) in _xfs_log_force()
2977 if (iclog->ic_state & XLOG_STATE_IOERROR) { in _xfs_log_force_lsn()
2988 if (iclog->ic_state == XLOG_STATE_DIRTY) { in _xfs_log_force_lsn()
2993 if (iclog->ic_state == XLOG_STATE_ACTIVE) { in _xfs_log_force_lsn()
3013 (iclog->ic_prev->ic_state & in _xfs_log_force_lsn()
3015 ASSERT(!(iclog->ic_state & XLOG_STATE_IOERROR)); in _xfs_log_force_lsn()
3037 !(iclog->ic_state & in _xfs_log_force_lsn()
3043 if (iclog->ic_state & XLOG_STATE_IOERROR) { in _xfs_log_force_lsn()
3054 if (iclog->ic_state & XLOG_STATE_IOERROR) in _xfs_log_force_lsn()
3097 if (iclog->ic_state == XLOG_STATE_ACTIVE) { in xlog_state_want_sync()
3100 ASSERT(iclog->ic_state & in xlog_state_want_sync()
3466 if (! (iclog->ic_state & XLOG_STATE_IOERROR)) { in xlog_state_ioerror()
3473 ic->ic_state = XLOG_STATE_IOERROR; in xlog_state_ioerror()
3527 if (logerror && log->l_iclog->ic_state & XLOG_STATE_IOERROR) { in xfs_log_force_umount()
3576 if (!(log->l_iclog->ic_state & XLOG_STATE_IOERROR)) { in xfs_log_force_umount()