Lines Matching refs:i_state

124 	WARN_ON_ONCE(inode->i_state & I_FREEING);  in inode_io_list_move_locked()
284 WARN_ON_ONCE(inode->i_state & I_FREEING); in inode_cgwb_move_to_attached()
286 inode->i_state &= ~I_SYNC_QUEUED; in inode_cgwb_move_to_attached()
388 if (unlikely(inode->i_state & (I_FREEING | I_WILL_FREE))) in inode_do_switch_wbs()
432 if (inode->i_state & I_DIRTY_ALL) { in inode_do_switch_wbs()
458 smp_store_release(&inode->i_state, inode->i_state & ~I_WB_SWITCH); in inode_do_switch_wbs()
540 inode->i_state & (I_WB_SWITCH | I_FREEING | I_WILL_FREE) || in inode_prepare_wbs_switch()
545 inode->i_state |= I_WB_SWITCH; in inode_prepare_wbs_switch()
567 if (inode->i_state & I_WB_SWITCH) in inode_switch_wbs()
1156 WARN_ON_ONCE(inode->i_state & I_FREEING); in inode_cgwb_move_to_attached()
1158 inode->i_state &= ~I_SYNC_QUEUED; in inode_cgwb_move_to_attached()
1264 inode->i_state &= ~I_SYNC_QUEUED; in inode_io_list_del()
1322 inode->i_state &= ~I_SYNC_QUEUED; in redirty_tail_locked()
1328 if (inode->i_state & I_FREEING) { in redirty_tail_locked()
1360 inode->i_state &= ~I_SYNC; in inode_sync_complete()
1365 wake_up_bit(&inode->i_state, __I_SYNC); in inode_sync_complete()
1405 inode->i_state |= I_SYNC_QUEUED; in move_expired_inodes()
1488 DEFINE_WAIT_BIT(wq, &inode->i_state, __I_SYNC); in __inode_wait_for_writeback()
1491 wqh = bit_waitqueue(&inode->i_state, __I_SYNC); in __inode_wait_for_writeback()
1492 while (inode->i_state & I_SYNC) { in __inode_wait_for_writeback()
1519 wait_queue_head_t *wqh = bit_waitqueue(&inode->i_state, __I_SYNC); in inode_sleep_on_writeback()
1523 sleep = inode->i_state & I_SYNC; in inode_sleep_on_writeback()
1541 if (inode->i_state & I_FREEING) in requeue_inode()
1549 if ((inode->i_state & I_DIRTY) && in requeue_inode()
1560 if (inode->i_state & I_DIRTY_ALL) in requeue_inode()
1585 } else if (inode->i_state & I_DIRTY) { in requeue_inode()
1592 } else if (inode->i_state & I_DIRTY_TIME) { in requeue_inode()
1595 inode->i_state &= ~I_SYNC_QUEUED; in requeue_inode()
1621 WARN_ON(!(inode->i_state & I_SYNC)); in __writeback_single_inode()
1645 if ((inode->i_state & I_DIRTY_TIME) && in __writeback_single_inode()
1660 dirty = inode->i_state & I_DIRTY; in __writeback_single_inode()
1661 inode->i_state &= ~dirty; in __writeback_single_inode()
1677 inode->i_state |= I_DIRTY_PAGES; in __writeback_single_inode()
1678 else if (unlikely(inode->i_state & I_PINNING_FSCACHE_WB)) { in __writeback_single_inode()
1679 if (!(inode->i_state & I_DIRTY_PAGES)) { in __writeback_single_inode()
1680 inode->i_state &= ~I_PINNING_FSCACHE_WB; in __writeback_single_inode()
1716 WARN_ON(!(inode->i_state & (I_WILL_FREE|I_FREEING))); in writeback_single_inode()
1718 WARN_ON(inode->i_state & I_WILL_FREE); in writeback_single_inode()
1720 if (inode->i_state & I_SYNC) { in writeback_single_inode()
1731 WARN_ON(inode->i_state & I_SYNC); in writeback_single_inode()
1739 if (!(inode->i_state & I_DIRTY_ALL) && in writeback_single_inode()
1743 inode->i_state |= I_SYNC; in writeback_single_inode()
1756 if (!(inode->i_state & I_FREEING)) { in writeback_single_inode()
1762 if (!(inode->i_state & I_DIRTY_ALL)) in writeback_single_inode()
1764 else if (!(inode->i_state & I_SYNC_QUEUED)) { in writeback_single_inode()
1765 if ((inode->i_state & I_DIRTY)) in writeback_single_inode()
1767 else if (inode->i_state & I_DIRTY_TIME) { in writeback_single_inode()
1871 if (inode->i_state & (I_NEW | I_FREEING | I_WILL_FREE)) { in writeback_sb_inodes()
1876 if ((inode->i_state & I_SYNC) && wbc.sync_mode != WB_SYNC_ALL) { in writeback_sb_inodes()
1898 if (inode->i_state & I_SYNC) { in writeback_sb_inodes()
1905 inode->i_state |= I_SYNC; in writeback_sb_inodes()
1943 if (!(inode->i_state & I_DIRTY_ALL)) in writeback_sb_inodes()
2434 if (inode->i_state & I_DIRTY_TIME) { in __mark_inode_dirty()
2436 if (inode->i_state & I_DIRTY_TIME) { in __mark_inode_dirty()
2437 inode->i_state &= ~I_DIRTY_TIME; in __mark_inode_dirty()
2474 if ((inode->i_state & flags) == flags) in __mark_inode_dirty()
2478 if ((inode->i_state & flags) != flags) { in __mark_inode_dirty()
2479 const int was_dirty = inode->i_state & I_DIRTY; in __mark_inode_dirty()
2483 inode->i_state |= flags; in __mark_inode_dirty()
2502 if (inode->i_state & I_SYNC_QUEUED) in __mark_inode_dirty()
2513 if (inode->i_state & I_FREEING) in __mark_inode_dirty()
2528 if (inode->i_state & I_DIRTY) in __mark_inode_dirty()
2624 if (inode->i_state & (I_FREEING|I_WILL_FREE|I_NEW)) { in wait_sb_inodes()