Lines Matching refs:i_state

124 	WARN_ON_ONCE(inode->i_state & I_FREEING);
309 WARN_ON_ONCE(inode->i_state & I_FREEING);
311 inode->i_state &= ~I_SYNC_QUEUED;
413 if (unlikely(inode->i_state & (I_FREEING | I_WILL_FREE)))
457 if (inode->i_state & I_DIRTY_ALL) {
483 smp_store_release(&inode->i_state, inode->i_state & ~I_WB_SWITCH);
565 inode->i_state & (I_WB_SWITCH | I_FREEING | I_WILL_FREE) ||
570 inode->i_state |= I_WB_SWITCH;
592 if (inode->i_state & I_WB_SWITCH)
1181 WARN_ON_ONCE(inode->i_state & I_FREEING);
1183 inode->i_state &= ~I_SYNC_QUEUED;
1289 inode->i_state &= ~I_SYNC_QUEUED;
1347 inode->i_state &= ~I_SYNC_QUEUED;
1353 if (inode->i_state & I_FREEING) {
1385 inode->i_state &= ~I_SYNC;
1390 wake_up_bit(&inode->i_state, __I_SYNC);
1430 inode->i_state |= I_SYNC_QUEUED;
1513 DEFINE_WAIT_BIT(wq, &inode->i_state, __I_SYNC);
1516 wqh = bit_waitqueue(&inode->i_state, __I_SYNC);
1517 while (inode->i_state & I_SYNC) {
1544 wait_queue_head_t *wqh = bit_waitqueue(&inode->i_state, __I_SYNC);
1548 sleep = inode->i_state & I_SYNC;
1566 if (inode->i_state & I_FREEING)
1574 if ((inode->i_state & I_DIRTY) &&
1585 if (inode->i_state & I_DIRTY_ALL)
1610 } else if (inode->i_state & I_DIRTY) {
1617 } else if (inode->i_state & I_DIRTY_TIME) {
1620 inode->i_state &= ~I_SYNC_QUEUED;
1629 * on @wbc->nr_to_write), and clear the relevant dirty flags from i_state.
1646 WARN_ON(!(inode->i_state & I_SYNC));
1670 if ((inode->i_state & I_DIRTY_TIME) &&
1679 * Get and clear the dirty flags from i_state. This needs to be done
1685 dirty = inode->i_state & I_DIRTY;
1686 inode->i_state &= ~dirty;
1690 * __mark_inode_dirty() to test i_state without grabbing i_lock -
1702 inode->i_state |= I_DIRTY_PAGES;
1703 else if (unlikely(inode->i_state & I_PINNING_NETFS_WB)) {
1704 if (!(inode->i_state & I_DIRTY_PAGES)) {
1705 inode->i_state &= ~I_PINNING_NETFS_WB;
1741 WARN_ON(!(inode->i_state & (I_WILL_FREE|I_FREEING)));
1743 WARN_ON(inode->i_state & I_WILL_FREE);
1745 if (inode->i_state & I_SYNC) {
1756 WARN_ON(inode->i_state & I_SYNC);
1764 if (!(inode->i_state & I_DIRTY_ALL) &&
1768 inode->i_state |= I_SYNC;
1781 if (!(inode->i_state & I_FREEING)) {
1787 if (!(inode->i_state & I_DIRTY_ALL))
1789 else if (!(inode->i_state & I_SYNC_QUEUED)) {
1790 if ((inode->i_state & I_DIRTY))
1792 else if (inode->i_state & I_DIRTY_TIME) {
1896 if (inode->i_state & (I_NEW | I_FREEING | I_WILL_FREE)) {
1901 if ((inode->i_state & I_SYNC) && wbc.sync_mode != WB_SYNC_ALL) {
1923 if (inode->i_state & I_SYNC) {
1930 inode->i_state |= I_SYNC;
1968 if (!(inode->i_state & I_DIRTY_ALL))
2459 if (inode->i_state & I_DIRTY_TIME) {
2461 if (inode->i_state & I_DIRTY_TIME) {
2462 inode->i_state &= ~I_DIRTY_TIME;
2495 * following lockless i_state test. See there for details.
2499 if ((inode->i_state & flags) == flags)
2503 if ((inode->i_state & flags) != flags) {
2504 const int was_dirty = inode->i_state & I_DIRTY;
2508 inode->i_state |= flags;
2527 if (inode->i_state & I_SYNC_QUEUED)
2538 if (inode->i_state & I_FREEING)
2553 if (inode->i_state & I_DIRTY)
2649 if (inode->i_state & (I_FREEING|I_WILL_FREE|I_NEW)) {