Lines Matching refs:d_flags
346 flags = READ_ONCE(dentry->d_flags); in __d_set_inode_and_type()
349 smp_store_release(&dentry->d_flags, flags); in __d_set_inode_and_type()
354 unsigned flags = READ_ONCE(dentry->d_flags); in __d_clear_type_and_inode()
357 WRITE_ONCE(dentry->d_flags, flags); in __d_clear_type_and_inode()
359 if (dentry->d_flags & DCACHE_LRU_LIST) in __d_clear_type_and_inode()
374 if (dentry->d_flags & DCACHE_NORCU) in dentry_free()
423 #define D_FLAG_VERIFY(dentry,x) WARN_ON_ONCE(((dentry)->d_flags & (DCACHE_LRU_LIST | DCACHE_SHRINK_…
427 dentry->d_flags |= DCACHE_LRU_LIST; in d_lru_add()
437 dentry->d_flags &= ~DCACHE_LRU_LIST; in d_lru_del()
448 dentry->d_flags &= ~(DCACHE_SHRINK_LIST | DCACHE_LRU_LIST); in d_shrink_del()
456 dentry->d_flags |= DCACHE_SHRINK_LIST | DCACHE_LRU_LIST; in d_shrink_add()
469 dentry->d_flags &= ~DCACHE_LRU_LIST; in d_lru_isolate()
480 dentry->d_flags |= DCACHE_SHRINK_LIST; in d_lru_shrink_move()
547 dentry->d_flags |= DCACHE_DENTRY_KILLED; in dentry_unlist()
572 if (likely(!(next->d_flags & DCACHE_DENTRY_CURSOR))) in dentry_unlist()
594 if (dentry->d_flags & DCACHE_OP_PRUNE) in __dentry_kill()
597 if (dentry->d_flags & DCACHE_LRU_LIST) { in __dentry_kill()
598 if (!(dentry->d_flags & DCACHE_SHRINK_LIST)) in __dentry_kill()
615 if (dentry->d_flags & DCACHE_SHRINK_LIST) { in __dentry_kill()
616 dentry->d_flags |= DCACHE_MAY_FREE; in __dentry_kill()
671 if (unlikely(dentry->d_flags & DCACHE_DISCONNECTED)) in retain_dentry()
674 if (unlikely(dentry->d_flags & DCACHE_OP_DELETE)) { in retain_dentry()
679 if (unlikely(dentry->d_flags & DCACHE_DONTCACHE)) in retain_dentry()
684 if (unlikely(!(dentry->d_flags & DCACHE_LRU_LIST))) in retain_dentry()
686 else if (unlikely(!(dentry->d_flags & DCACHE_REFERENCED))) in retain_dentry()
687 dentry->d_flags |= DCACHE_REFERENCED; in retain_dentry()
698 de->d_flags |= DCACHE_DONTCACHE; in d_mark_dontcache()
768 unsigned int d_flags; in fast_dput() local
774 if (unlikely(dentry->d_flags & DCACHE_OP_DELETE)) in fast_dput()
832 d_flags = READ_ONCE(dentry->d_flags); in fast_dput()
833 d_flags &= DCACHE_REFERENCED | DCACHE_LRU_LIST | in fast_dput()
837 if (d_flags == (DCACHE_REFERENCED | DCACHE_LRU_LIST) && !d_unhashed(dentry)) in fast_dput()
921 if (dentry->d_flags & DCACHE_SHRINK_LIST) { in __dput_to_list()
925 if (dentry->d_flags & DCACHE_LRU_LIST) in __dput_to_list()
1190 can_free = dentry->d_flags & DCACHE_MAY_FREE; in shrink_dentry_list()
1231 if (dentry->d_flags & DCACHE_REFERENCED) { in dentry_lru_isolate()
1232 dentry->d_flags &= ~DCACHE_REFERENCED; in dentry_lru_isolate()
1381 if (unlikely(dentry->d_flags & DCACHE_DENTRY_CURSOR)) in d_walk()
1431 } while (unlikely(child->d_flags & DCACHE_DENTRY_KILLED)); in d_walk()
1519 dentry->d_flags |= DCACHE_MOUNTED; in d_set_mounted()
1561 if (dentry->d_flags & DCACHE_SHRINK_LIST) { in select_collect()
1564 if (dentry->d_flags & DCACHE_LRU_LIST) in select_collect()
1590 if (dentry->d_flags & DCACHE_SHRINK_LIST) { in select_collect2()
1597 if (dentry->d_flags & DCACHE_LRU_LIST) in select_collect2()
1808 dentry->d_flags = 0; in __d_alloc()
1876 dentry->d_flags |= DCACHE_DENTRY_CURSOR; in d_alloc_cursor()
1901 dentry->d_flags |= DCACHE_NORCU; in d_alloc_pseudo()
1918 WARN_ON_ONCE(dentry->d_flags & (DCACHE_OP_HASH | in d_set_d_op()
1928 dentry->d_flags |= DCACHE_OP_HASH; in d_set_d_op()
1930 dentry->d_flags |= DCACHE_OP_COMPARE; in d_set_d_op()
1932 dentry->d_flags |= DCACHE_OP_REVALIDATE; in d_set_d_op()
1934 dentry->d_flags |= DCACHE_OP_WEAK_REVALIDATE; in d_set_d_op()
1936 dentry->d_flags |= DCACHE_OP_DELETE; in d_set_d_op()
1938 dentry->d_flags |= DCACHE_OP_PRUNE; in d_set_d_op()
1940 dentry->d_flags |= DCACHE_OP_REAL; in d_set_d_op()
1956 dentry->d_flags |= DCACHE_FALLTHRU; in d_set_fallthru()
2005 if (dentry->d_flags & DCACHE_LRU_LIST) in __d_instantiate()
2262 if (likely(!(parent->d_flags & DCACHE_OP_COMPARE))) { in d_same_name()
2361 if (unlikely(parent->d_flags & DCACHE_OP_COMPARE)) in __d_lookup_rcu()
2524 if (dir->d_flags & DCACHE_OP_HASH) { in d_hash_and_lookup()
2564 dentry->d_flags &= ~DCACHE_CANT_MOUNT; in d_delete()
2729 new->d_flags |= DCACHE_PAR_LOOKUP; in d_alloc_parallel()
2755 dentry->d_flags &= ~DCACHE_PAR_LOOKUP; in __d_lookup_unhash()
3237 if (!(dentry->d_flags & DCACHE_GENOCIDE)) { in d_genocide_kill()
3238 dentry->d_flags |= DCACHE_GENOCIDE; in d_genocide_kill()