Lines Matching refs:i_state
363 WARN_ON(!(inode->i_state & I_LINKABLE)); in inc_nlink()
434 inode->i_state |= I_REFERENCED; in inode_lru_list_add()
444 if (!(inode->i_state & (I_DIRTY_ALL | I_SYNC | in inode_add_lru()
537 BUG_ON(!(inode->i_state & I_FREEING)); in clear_inode()
538 BUG_ON(inode->i_state & I_CLEAR); in clear_inode()
541 inode->i_state = I_FREEING | I_CLEAR; in clear_inode()
562 BUG_ON(!(inode->i_state & I_FREEING)); in evict()
592 wake_up_bit(&inode->i_state, __I_NEW); in evict()
593 BUG_ON(inode->i_state != (I_FREEING | I_CLEAR)); in evict()
640 if (inode->i_state & (I_NEW | I_FREEING | I_WILL_FREE)) { in evict_inodes()
645 inode->i_state |= I_FREEING; in evict_inodes()
688 if (inode->i_state & (I_NEW | I_FREEING | I_WILL_FREE)) { in invalidate_inodes()
692 if (inode->i_state & I_DIRTY_ALL && !kill_dirty) { in invalidate_inodes()
703 inode->i_state |= I_FREEING; in invalidate_inodes()
754 (inode->i_state & ~I_REFERENCED)) { in inode_lru_isolate()
762 if (inode->i_state & I_REFERENCED) { in inode_lru_isolate()
763 inode->i_state &= ~I_REFERENCED; in inode_lru_isolate()
787 WARN_ON(inode->i_state & I_NEW); in inode_lru_isolate()
788 inode->i_state |= I_FREEING; in inode_lru_isolate()
831 if (inode->i_state & (I_FREEING|I_WILL_FREE)) { in find_inode()
835 if (unlikely(inode->i_state & I_CREATING)) { in find_inode()
862 if (inode->i_state & (I_FREEING|I_WILL_FREE)) { in find_inode_fast()
866 if (unlikely(inode->i_state & I_CREATING)) { in find_inode_fast()
935 inode->i_state = 0; in new_inode_pseudo()
999 WARN_ON(!(inode->i_state & I_NEW)); in unlock_new_inode()
1000 inode->i_state &= ~I_NEW & ~I_CREATING; in unlock_new_inode()
1002 wake_up_bit(&inode->i_state, __I_NEW); in unlock_new_inode()
1011 WARN_ON(!(inode->i_state & I_NEW)); in discard_new_inode()
1012 inode->i_state &= ~I_NEW; in discard_new_inode()
1014 wake_up_bit(&inode->i_state, __I_NEW); in discard_new_inode()
1081 bool creating = inode->i_state & I_CREATING; in inode_insert5()
1112 inode->i_state |= I_NEW; in inode_insert5()
1154 new->i_state = 0; in iget5_locked()
1206 inode->i_state = I_NEW; in iget_locked()
1299 if (!(inode->i_state & (I_FREEING|I_WILL_FREE))) { in igrab()
1491 !(READ_ONCE(inode->i_state) & (I_FREEING | I_WILL_FREE)) && in find_inode_rcu()
1530 !(READ_ONCE(inode->i_state) & (I_FREEING | I_WILL_FREE))) in find_inode_by_ino_rcu()
1552 if (old->i_state & (I_FREEING|I_WILL_FREE)) { in insert_inode_locked()
1560 inode->i_state |= I_NEW | I_CREATING; in insert_inode_locked()
1566 if (unlikely(old->i_state & I_CREATING)) { in insert_inode_locked()
1589 inode->i_state |= I_CREATING; in insert_inode_locked4()
1624 WARN_ON(inode->i_state & I_NEW); in iput_final()
1632 !(inode->i_state & I_DONTCACHE) && in iput_final()
1639 state = inode->i_state; in iput_final()
1641 WRITE_ONCE(inode->i_state, state | I_WILL_FREE); in iput_final()
1647 state = inode->i_state; in iput_final()
1652 WRITE_ONCE(inode->i_state, state | I_FREEING); in iput_final()
1673 BUG_ON(inode->i_state & I_CLEAR); in iput()
1676 if (inode->i_nlink && (inode->i_state & I_DIRTY_TIME)) { in iput()
2047 DEFINE_WAIT_BIT(wait, &inode->i_state, __I_NEW); in __wait_on_freeing_inode()
2048 wq = bit_waitqueue(&inode->i_state, __I_NEW); in __wait_on_freeing_inode()
2188 wait_queue_head_t *wq = bit_waitqueue(&inode->i_state, __I_DIO_WAKEUP); in __inode_dio_wait()
2189 DEFINE_WAIT_BIT(q, &inode->i_state, __I_DIO_WAKEUP); in __inode_dio_wait()