Lines Matching refs:d_lock

48  * d_lock protects:
60 * dentry->d_lock
66 * dentry->d_parent->...->d_parent->d_lock
68 * dentry->d_parent->d_lock
69 * dentry->d_lock
315 spin_lock(&dentry->d_lock);
324 spin_unlock(&dentry->d_lock);
385 __releases(dentry->d_lock)
394 spin_unlock(&dentry->d_lock);
421 * rules. d_lock must be held by the caller.
527 * __d_drop requires dentry->d_lock
534 spin_lock(&dentry->d_lock);
536 spin_unlock(&dentry->d_lock);
557 * ->d_lock on parent prevents that and since a cursor has no children
563 * before d_walk() regains parent->d_lock, we'll end up skipping
605 spin_unlock(&parent->d_lock);
609 spin_unlock(&dentry->d_lock);
614 spin_lock(&dentry->d_lock);
619 spin_unlock(&dentry->d_lock);
629 spin_unlock(&dentry->d_lock);
632 spin_lock(&parent->d_lock);
637 * been done with parent->d_lock held, so
642 spin_unlock(&parent->d_lock);
647 spin_lock_nested(&dentry->d_lock, DENTRY_D_LOCK_NESTED);
658 if (likely(spin_trylock(&parent->d_lock)))
697 spin_lock(&de->d_lock);
699 spin_unlock(&de->d_lock);
708 * dentry->d_lock must be held, returns with it unlocked.
712 __releases(dentry->d_lock)
722 if (unlikely(!spin_trylock(&parent->d_lock))) {
728 spin_unlock(&parent->d_lock);
737 spin_unlock(&dentry->d_lock);
739 spin_lock(&dentry->d_lock);
752 spin_unlock(&parent->d_lock);
753 spin_unlock(&dentry->d_lock);
789 spin_lock(&dentry->d_lock);
791 spin_unlock(&dentry->d_lock);
845 spin_lock(&dentry->d_lock);
855 spin_unlock(&dentry->d_lock);
910 spin_unlock(&dentry->d_lock);
920 __must_hold(&dentry->d_lock)
943 spin_unlock(&dentry->d_lock);
946 /* This must be called with d_lock held */
985 spin_lock(&ret->d_lock);
987 spin_unlock(&ret->d_lock);
994 spin_unlock(&ret->d_lock);
1036 spin_lock(&alias->d_lock);
1039 spin_unlock(&alias->d_lock);
1042 spin_unlock(&alias->d_lock);
1109 spin_lock(&dentry->d_lock);
1118 spin_unlock(&parent->d_lock);
1120 spin_unlock(&dentry->d_lock);
1128 * Called under rcu_read_lock() and dentry->d_lock; the former
1147 spin_unlock(&dentry->d_lock);
1149 spin_lock(&dentry->d_lock);
1158 if (IS_ROOT(dentry) || likely(spin_trylock(&parent->d_lock)))
1161 spin_unlock(&dentry->d_lock);
1162 spin_lock(&parent->d_lock);
1164 spin_unlock(&parent->d_lock);
1165 spin_lock(&dentry->d_lock);
1168 spin_lock_nested(&dentry->d_lock, DENTRY_D_LOCK_NESTED);
1171 spin_unlock(&parent->d_lock);
1184 spin_lock(&dentry->d_lock);
1192 spin_unlock(&dentry->d_lock);
1214 * we are inverting the lru lock/dentry->d_lock here,
1218 if (!spin_trylock(&dentry->d_lock))
1228 spin_unlock(&dentry->d_lock);
1234 spin_unlock(&dentry->d_lock);
1238 * this point, we've dropped the dentry->d_lock but keep the
1259 spin_unlock(&dentry->d_lock);
1294 * we are inverting the lru lock/dentry->d_lock here,
1298 if (!spin_trylock(&dentry->d_lock))
1302 spin_unlock(&dentry->d_lock);
1347 * The @enter() callbacks are called with d_lock held.
1361 spin_lock(&this_parent->d_lock);
1385 spin_lock_nested(&dentry->d_lock, DENTRY_D_LOCK_NESTED);
1392 spin_unlock(&dentry->d_lock);
1398 spin_unlock(&dentry->d_lock);
1403 spin_unlock(&this_parent->d_lock);
1404 spin_release(&dentry->d_lock.dep_map, _RET_IP_);
1406 spin_acquire(&this_parent->d_lock.dep_map, 0, 1, _RET_IP_);
1409 spin_unlock(&dentry->d_lock);
1420 spin_unlock(&child->d_lock);
1421 spin_lock(&this_parent->d_lock);
1441 spin_unlock(&this_parent->d_lock);
1446 spin_unlock(&this_parent->d_lock);
1500 * this reason take rename_lock and d_lock on dentry and ancestors.
1509 spin_lock(&p->d_lock);
1511 spin_unlock(&p->d_lock);
1514 spin_unlock(&p->d_lock);
1516 spin_lock(&dentry->d_lock);
1524 spin_unlock(&dentry->d_lock);
1640 spin_lock(&data.victim->d_lock);
1642 spin_unlock(&data.victim->d_lock);
1725 spin_lock(&dentry->d_lock);
1727 spin_unlock(&dentry->d_lock);
1731 spin_unlock(&dentry->d_lock);
1809 spin_lock_init(&dentry->d_lock);
1810 seqcount_spinlock_init(&dentry->d_seq, &dentry->d_lock);
1852 spin_lock(&parent->d_lock);
1860 spin_unlock(&parent->d_lock);
1955 spin_lock(&dentry->d_lock);
1957 spin_unlock(&dentry->d_lock);
2001 spin_lock(&dentry->d_lock);
2012 spin_unlock(&dentry->d_lock);
2101 spin_lock(&dentry->d_lock);
2109 spin_unlock(&dentry->d_lock);
2330 * without taking d_lock and checking d_seq sequence count against @seq
2471 * Take d_lock when comparing a candidate dentry, to avoid races
2488 spin_lock(&dentry->d_lock);
2499 spin_unlock(&dentry->d_lock);
2502 spin_unlock(&dentry->d_lock);
2559 spin_lock(&dentry->d_lock);
2568 spin_unlock(&dentry->d_lock);
2592 spin_lock(&entry->d_lock);
2594 spin_unlock(&entry->d_lock);
2624 spin_unlock(&dentry->d_lock);
2626 spin_lock(&dentry->d_lock);
2706 spin_lock(&dentry->d_lock);
2723 spin_unlock(&dentry->d_lock);
2728 /* we can't take ->d_lock here; it's OK, though. */
2735 spin_unlock(&dentry->d_lock);
2751 lockdep_assert_held(&dentry->d_lock);
2767 spin_lock(&dentry->d_lock);
2769 spin_unlock(&dentry->d_lock);
2780 spin_lock(&dentry->d_lock);
2797 spin_unlock(&dentry->d_lock);
2840 * Don't need alias->d_lock here, because aliases with
2850 spin_lock(&alias->d_lock);
2852 spin_unlock(&alias->d_lock);
2857 spin_unlock(&alias->d_lock);
2956 spin_lock(&target->d_parent->d_lock);
2959 spin_lock(&target->d_parent->d_lock);
2960 spin_lock_nested(&old_parent->d_lock, DENTRY_D_LOCK_NESTED);
2963 spin_lock(&old_parent->d_lock);
2965 spin_lock_nested(&target->d_parent->d_lock,
2968 spin_lock_nested(&dentry->d_lock, 2);
2969 spin_lock_nested(&target->d_lock, 3);
3013 spin_unlock(&dentry->d_parent->d_lock);
3015 spin_unlock(&old_parent->d_lock);
3016 spin_unlock(&target->d_lock);
3017 spin_unlock(&dentry->d_lock);
3258 spin_lock(&dentry->d_parent->d_lock);
3259 spin_lock_nested(&dentry->d_lock, DENTRY_D_LOCK_NESTED);
3262 spin_unlock(&dentry->d_lock);
3263 spin_unlock(&dentry->d_parent->d_lock);