Lines Matching refs:d_flags
321 flags = READ_ONCE(dentry->d_flags); in __d_set_inode_and_type()
324 smp_store_release(&dentry->d_flags, flags); in __d_set_inode_and_type()
329 unsigned flags = READ_ONCE(dentry->d_flags); in __d_clear_type_and_inode()
332 WRITE_ONCE(dentry->d_flags, flags); in __d_clear_type_and_inode()
334 if (dentry->d_flags & DCACHE_LRU_LIST) in __d_clear_type_and_inode()
349 if (dentry->d_flags & DCACHE_NORCU) in dentry_free()
398 #define D_FLAG_VERIFY(dentry,x) WARN_ON_ONCE(((dentry)->d_flags & (DCACHE_LRU_LIST | DCACHE_SHRINK_…
402 dentry->d_flags |= DCACHE_LRU_LIST; in d_lru_add()
412 dentry->d_flags &= ~DCACHE_LRU_LIST; in d_lru_del()
423 dentry->d_flags &= ~(DCACHE_SHRINK_LIST | DCACHE_LRU_LIST); in d_shrink_del()
431 dentry->d_flags |= DCACHE_SHRINK_LIST | DCACHE_LRU_LIST; in d_shrink_add()
444 dentry->d_flags &= ~DCACHE_LRU_LIST; in d_lru_isolate()
455 dentry->d_flags |= DCACHE_SHRINK_LIST; in d_lru_shrink_move()
522 dentry->d_flags |= DCACHE_DENTRY_KILLED; in dentry_unlist()
547 if (likely(!(next->d_flags & DCACHE_DENTRY_CURSOR))) in dentry_unlist()
569 if (dentry->d_flags & DCACHE_OP_PRUNE) in __dentry_kill()
572 if (dentry->d_flags & DCACHE_LRU_LIST) { in __dentry_kill()
573 if (!(dentry->d_flags & DCACHE_SHRINK_LIST)) in __dentry_kill()
590 if (dentry->d_flags & DCACHE_SHRINK_LIST) { in __dentry_kill()
591 dentry->d_flags |= DCACHE_MAY_FREE; in __dentry_kill()
646 if (unlikely(dentry->d_flags & DCACHE_DISCONNECTED)) in retain_dentry()
649 if (unlikely(dentry->d_flags & DCACHE_OP_DELETE)) { in retain_dentry()
654 if (unlikely(dentry->d_flags & DCACHE_DONTCACHE)) in retain_dentry()
659 if (unlikely(!(dentry->d_flags & DCACHE_LRU_LIST))) in retain_dentry()
661 else if (unlikely(!(dentry->d_flags & DCACHE_REFERENCED))) in retain_dentry()
662 dentry->d_flags |= DCACHE_REFERENCED; in retain_dentry()
673 de->d_flags |= DCACHE_DONTCACHE; in d_mark_dontcache()
743 unsigned int d_flags; in fast_dput() local
749 if (unlikely(dentry->d_flags & DCACHE_OP_DELETE)) in fast_dput()
807 d_flags = READ_ONCE(dentry->d_flags); in fast_dput()
808 d_flags &= DCACHE_REFERENCED | DCACHE_LRU_LIST | in fast_dput()
812 if (d_flags == (DCACHE_REFERENCED | DCACHE_LRU_LIST) && !d_unhashed(dentry)) in fast_dput()
896 if (dentry->d_flags & DCACHE_SHRINK_LIST) { in __dput_to_list()
900 if (dentry->d_flags & DCACHE_LRU_LIST) in __dput_to_list()
1165 can_free = dentry->d_flags & DCACHE_MAY_FREE; in shrink_dentry_list()
1206 if (dentry->d_flags & DCACHE_REFERENCED) { in dentry_lru_isolate()
1207 dentry->d_flags &= ~DCACHE_REFERENCED; in dentry_lru_isolate()
1356 if (unlikely(dentry->d_flags & DCACHE_DENTRY_CURSOR)) in d_walk()
1406 } while (unlikely(child->d_flags & DCACHE_DENTRY_KILLED)); in d_walk()
1494 dentry->d_flags |= DCACHE_MOUNTED; in d_set_mounted()
1536 if (dentry->d_flags & DCACHE_SHRINK_LIST) { in select_collect()
1539 if (dentry->d_flags & DCACHE_LRU_LIST) in select_collect()
1565 if (dentry->d_flags & DCACHE_SHRINK_LIST) { in select_collect2()
1572 if (dentry->d_flags & DCACHE_LRU_LIST) in select_collect2()
1782 dentry->d_flags = 0; in __d_alloc()
1850 dentry->d_flags |= DCACHE_DENTRY_CURSOR; in d_alloc_cursor()
1875 dentry->d_flags |= DCACHE_NORCU; in d_alloc_pseudo()
1892 WARN_ON_ONCE(dentry->d_flags & (DCACHE_OP_HASH | in d_set_d_op()
1902 dentry->d_flags |= DCACHE_OP_HASH; in d_set_d_op()
1904 dentry->d_flags |= DCACHE_OP_COMPARE; in d_set_d_op()
1906 dentry->d_flags |= DCACHE_OP_REVALIDATE; in d_set_d_op()
1908 dentry->d_flags |= DCACHE_OP_WEAK_REVALIDATE; in d_set_d_op()
1910 dentry->d_flags |= DCACHE_OP_DELETE; in d_set_d_op()
1912 dentry->d_flags |= DCACHE_OP_PRUNE; in d_set_d_op()
1914 dentry->d_flags |= DCACHE_OP_REAL; in d_set_d_op()
1930 dentry->d_flags |= DCACHE_FALLTHRU; in d_set_fallthru()
1979 if (dentry->d_flags & DCACHE_LRU_LIST) in __d_instantiate()
2229 if (likely(!(parent->d_flags & DCACHE_OP_COMPARE))) { in d_same_name()
2325 if (unlikely(parent->d_flags & DCACHE_OP_COMPARE)) { in __d_lookup_rcu()
2464 if (dir->d_flags & DCACHE_OP_HASH) { in d_hash_and_lookup()
2504 dentry->d_flags &= ~DCACHE_CANT_MOUNT; in d_delete()
2666 new->d_flags |= DCACHE_PAR_LOOKUP; in d_alloc_parallel()
2683 dentry->d_flags &= ~DCACHE_PAR_LOOKUP; in __d_lookup_done()
3155 if (!(dentry->d_flags & DCACHE_GENOCIDE)) { in d_genocide_kill()
3156 dentry->d_flags |= DCACHE_GENOCIDE; in d_genocide_kill()