Lines Matching refs:d_lock
315 spin_lock(&dentry->d_lock); in take_dentry_name_snapshot()
324 spin_unlock(&dentry->d_lock); in take_dentry_name_snapshot()
385 __releases(dentry->d_lock) in dentry_unlink_inode()
394 spin_unlock(&dentry->d_lock); in dentry_unlink_inode()
534 spin_lock(&dentry->d_lock); in d_drop()
536 spin_unlock(&dentry->d_lock); in d_drop()
605 spin_unlock(&parent->d_lock); in __dentry_kill()
609 spin_unlock(&dentry->d_lock); in __dentry_kill()
614 spin_lock(&dentry->d_lock); in __dentry_kill()
619 spin_unlock(&dentry->d_lock); in __dentry_kill()
629 spin_unlock(&dentry->d_lock); in __lock_parent()
632 spin_lock(&parent->d_lock); in __lock_parent()
642 spin_unlock(&parent->d_lock); in __lock_parent()
647 spin_lock_nested(&dentry->d_lock, DENTRY_D_LOCK_NESTED); in __lock_parent()
658 if (likely(spin_trylock(&parent->d_lock))) in lock_parent()
697 spin_lock(&de->d_lock); in d_mark_dontcache()
699 spin_unlock(&de->d_lock); in d_mark_dontcache()
712 __releases(dentry->d_lock) in dentry_kill()
722 if (unlikely(!spin_trylock(&parent->d_lock))) { in dentry_kill()
728 spin_unlock(&parent->d_lock); in dentry_kill()
737 spin_unlock(&dentry->d_lock); in dentry_kill()
739 spin_lock(&dentry->d_lock); in dentry_kill()
752 spin_unlock(&parent->d_lock); in dentry_kill()
753 spin_unlock(&dentry->d_lock); in dentry_kill()
789 spin_lock(&dentry->d_lock); in fast_dput()
792 spin_unlock(&dentry->d_lock); in fast_dput()
845 spin_lock(&dentry->d_lock); in fast_dput()
854 spin_unlock(&dentry->d_lock); in fast_dput()
909 spin_unlock(&dentry->d_lock); in dput()
919 __must_hold(&dentry->d_lock) in __dput_to_list()
942 spin_unlock(&dentry->d_lock); in dput_to_list()
984 spin_lock(&ret->d_lock); in dget_parent()
986 spin_unlock(&ret->d_lock); in dget_parent()
993 spin_unlock(&ret->d_lock); in dget_parent()
1035 spin_lock(&alias->d_lock); in __d_find_alias()
1038 spin_unlock(&alias->d_lock); in __d_find_alias()
1041 spin_unlock(&alias->d_lock); in __d_find_alias()
1108 spin_lock(&dentry->d_lock); in d_prune_aliases()
1117 spin_unlock(&parent->d_lock); in d_prune_aliases()
1119 spin_unlock(&dentry->d_lock); in d_prune_aliases()
1146 spin_unlock(&dentry->d_lock); in shrink_lock_dentry()
1148 spin_lock(&dentry->d_lock); in shrink_lock_dentry()
1157 if (IS_ROOT(dentry) || likely(spin_trylock(&parent->d_lock))) in shrink_lock_dentry()
1160 spin_unlock(&dentry->d_lock); in shrink_lock_dentry()
1161 spin_lock(&parent->d_lock); in shrink_lock_dentry()
1163 spin_unlock(&parent->d_lock); in shrink_lock_dentry()
1164 spin_lock(&dentry->d_lock); in shrink_lock_dentry()
1167 spin_lock_nested(&dentry->d_lock, DENTRY_D_LOCK_NESTED); in shrink_lock_dentry()
1170 spin_unlock(&parent->d_lock); in shrink_lock_dentry()
1183 spin_lock(&dentry->d_lock); in shrink_dentry_list()
1191 spin_unlock(&dentry->d_lock); in shrink_dentry_list()
1217 if (!spin_trylock(&dentry->d_lock)) in dentry_lru_isolate()
1227 spin_unlock(&dentry->d_lock); in dentry_lru_isolate()
1233 spin_unlock(&dentry->d_lock); in dentry_lru_isolate()
1258 spin_unlock(&dentry->d_lock); in dentry_lru_isolate()
1297 if (!spin_trylock(&dentry->d_lock)) in dentry_lru_isolate_shrink()
1301 spin_unlock(&dentry->d_lock); in dentry_lru_isolate_shrink()
1360 spin_lock(&this_parent->d_lock); in d_walk()
1384 spin_lock_nested(&dentry->d_lock, DENTRY_D_LOCK_NESTED); in d_walk()
1391 spin_unlock(&dentry->d_lock); in d_walk()
1397 spin_unlock(&dentry->d_lock); in d_walk()
1402 spin_unlock(&this_parent->d_lock); in d_walk()
1403 spin_release(&dentry->d_lock.dep_map, _RET_IP_); in d_walk()
1405 spin_acquire(&this_parent->d_lock.dep_map, 0, 1, _RET_IP_); in d_walk()
1408 spin_unlock(&dentry->d_lock); in d_walk()
1419 spin_unlock(&child->d_lock); in d_walk()
1420 spin_lock(&this_parent->d_lock); in d_walk()
1440 spin_unlock(&this_parent->d_lock); in d_walk()
1445 spin_unlock(&this_parent->d_lock); in d_walk()
1508 spin_lock(&p->d_lock); in d_set_mounted()
1510 spin_unlock(&p->d_lock); in d_set_mounted()
1513 spin_unlock(&p->d_lock); in d_set_mounted()
1515 spin_lock(&dentry->d_lock); in d_set_mounted()
1523 spin_unlock(&dentry->d_lock); in d_set_mounted()
1639 spin_lock(&data.victim->d_lock); in shrink_dcache_parent()
1641 spin_unlock(&data.victim->d_lock); in shrink_dcache_parent()
1725 spin_lock(&dentry->d_lock); in d_invalidate()
1727 spin_unlock(&dentry->d_lock); in d_invalidate()
1731 spin_unlock(&dentry->d_lock); in d_invalidate()
1809 spin_lock_init(&dentry->d_lock); in __d_alloc()
1810 seqcount_spinlock_init(&dentry->d_seq, &dentry->d_lock); in __d_alloc()
1852 spin_lock(&parent->d_lock); in d_alloc()
1860 spin_unlock(&parent->d_lock); in d_alloc()
1955 spin_lock(&dentry->d_lock); in d_set_fallthru()
1957 spin_unlock(&dentry->d_lock); in d_set_fallthru()
2001 spin_lock(&dentry->d_lock); in __d_instantiate()
2012 spin_unlock(&dentry->d_lock); in __d_instantiate()
2101 spin_lock(&dentry->d_lock); in __d_instantiate_anon()
2109 spin_unlock(&dentry->d_lock); in __d_instantiate_anon()
2488 spin_lock(&dentry->d_lock); in __d_lookup()
2499 spin_unlock(&dentry->d_lock); in __d_lookup()
2502 spin_unlock(&dentry->d_lock); in __d_lookup()
2559 spin_lock(&dentry->d_lock); in d_delete()
2568 spin_unlock(&dentry->d_lock); in d_delete()
2592 spin_lock(&entry->d_lock); in d_rehash()
2594 spin_unlock(&entry->d_lock); in d_rehash()
2624 spin_unlock(&dentry->d_lock); in d_wait_lookup()
2626 spin_lock(&dentry->d_lock); in d_wait_lookup()
2706 spin_lock(&dentry->d_lock); in d_alloc_parallel()
2723 spin_unlock(&dentry->d_lock); in d_alloc_parallel()
2735 spin_unlock(&dentry->d_lock); in d_alloc_parallel()
2751 lockdep_assert_held(&dentry->d_lock); in __d_lookup_unhash()
2767 spin_lock(&dentry->d_lock); in __d_lookup_unhash_wake()
2769 spin_unlock(&dentry->d_lock); in __d_lookup_unhash_wake()
2780 spin_lock(&dentry->d_lock); in __d_add()
2797 spin_unlock(&dentry->d_lock); in __d_add()
2850 spin_lock(&alias->d_lock); in d_exact_alias()
2852 spin_unlock(&alias->d_lock); in d_exact_alias()
2857 spin_unlock(&alias->d_lock); in d_exact_alias()
2956 spin_lock(&target->d_parent->d_lock); in __d_move()
2959 spin_lock(&target->d_parent->d_lock); in __d_move()
2960 spin_lock_nested(&old_parent->d_lock, DENTRY_D_LOCK_NESTED); in __d_move()
2963 spin_lock(&old_parent->d_lock); in __d_move()
2965 spin_lock_nested(&target->d_parent->d_lock, in __d_move()
2968 spin_lock_nested(&dentry->d_lock, 2); in __d_move()
2969 spin_lock_nested(&target->d_lock, 3); in __d_move()
3013 spin_unlock(&dentry->d_parent->d_lock); in __d_move()
3015 spin_unlock(&old_parent->d_lock); in __d_move()
3016 spin_unlock(&target->d_lock); in __d_move()
3017 spin_unlock(&dentry->d_lock); in __d_move()
3260 spin_lock(&dentry->d_parent->d_lock); in d_tmpfile()
3261 spin_lock_nested(&dentry->d_lock, DENTRY_D_LOCK_NESTED); in d_tmpfile()
3264 spin_unlock(&dentry->d_lock); in d_tmpfile()
3265 spin_unlock(&dentry->d_parent->d_lock); in d_tmpfile()