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
288 spin_lock(&dentry->d_lock);
297 spin_unlock(&dentry->d_lock);
358 __releases(dentry->d_lock)
367 spin_unlock(&dentry->d_lock);
394 * rules. d_lock must be held by the caller.
472 * __d_drop requires dentry->d_lock
506 spin_lock(&dentry->d_lock);
508 spin_unlock(&dentry->d_lock);
529 * ->d_lock on parent prevents that and since a cursor has no children
535 * before d_walk() regains parent->d_lock, we'll end up skipping
577 spin_unlock(&parent->d_lock);
581 spin_unlock(&dentry->d_lock);
586 spin_lock(&dentry->d_lock);
591 spin_unlock(&dentry->d_lock);
601 spin_unlock(&dentry->d_lock);
604 spin_lock(&parent->d_lock);
609 * been done with parent->d_lock held, so
614 spin_unlock(&parent->d_lock);
619 spin_lock_nested(&dentry->d_lock, DENTRY_D_LOCK_NESTED);
630 if (likely(spin_trylock(&parent->d_lock)))
669 spin_lock(&de->d_lock);
671 spin_unlock(&de->d_lock);
680 * dentry->d_lock must be held, returns with it unlocked.
684 __releases(dentry->d_lock)
694 if (unlikely(!spin_trylock(&parent->d_lock))) {
700 spin_unlock(&parent->d_lock);
709 spin_unlock(&dentry->d_lock);
711 spin_lock(&dentry->d_lock);
724 spin_unlock(&parent->d_lock);
725 spin_unlock(&dentry->d_lock);
761 spin_lock(&dentry->d_lock);
763 spin_unlock(&dentry->d_lock);
810 spin_lock(&dentry->d_lock);
820 spin_unlock(&dentry->d_lock);
875 spin_unlock(&dentry->d_lock);
885 __must_hold(&dentry->d_lock)
908 spin_unlock(&dentry->d_lock);
911 /* This must be called with d_lock held */
950 spin_lock(&ret->d_lock);
952 spin_unlock(&ret->d_lock);
959 spin_unlock(&ret->d_lock);
1015 spin_lock(&alias->d_lock);
1018 spin_unlock(&alias->d_lock);
1021 spin_unlock(&alias->d_lock);
1049 spin_lock(&dentry->d_lock);
1058 spin_unlock(&parent->d_lock);
1060 spin_unlock(&dentry->d_lock);
1068 * Called under rcu_read_lock() and dentry->d_lock; the former
1087 spin_unlock(&dentry->d_lock);
1089 spin_lock(&dentry->d_lock);
1098 if (IS_ROOT(dentry) || likely(spin_trylock(&parent->d_lock)))
1101 spin_unlock(&dentry->d_lock);
1102 spin_lock(&parent->d_lock);
1104 spin_unlock(&parent->d_lock);
1105 spin_lock(&dentry->d_lock);
1108 spin_lock_nested(&dentry->d_lock, DENTRY_D_LOCK_NESTED);
1111 spin_unlock(&parent->d_lock);
1124 spin_lock(&dentry->d_lock);
1132 spin_unlock(&dentry->d_lock);
1154 * we are inverting the lru lock/dentry->d_lock here,
1158 if (!spin_trylock(&dentry->d_lock))
1168 spin_unlock(&dentry->d_lock);
1174 spin_unlock(&dentry->d_lock);
1178 * this point, we've dropped the dentry->d_lock but keep the
1199 spin_unlock(&dentry->d_lock);
1234 * we are inverting the lru lock/dentry->d_lock here,
1238 if (!spin_trylock(&dentry->d_lock))
1242 spin_unlock(&dentry->d_lock);
1287 * The @enter() callbacks are called with d_lock held.
1301 spin_lock(&this_parent->d_lock);
1325 spin_lock_nested(&dentry->d_lock, DENTRY_D_LOCK_NESTED);
1332 spin_unlock(&dentry->d_lock);
1338 spin_unlock(&dentry->d_lock);
1343 spin_unlock(&this_parent->d_lock);
1344 spin_release(&dentry->d_lock.dep_map, _RET_IP_);
1346 spin_acquire(&this_parent->d_lock.dep_map, 0, 1, _RET_IP_);
1349 spin_unlock(&dentry->d_lock);
1360 spin_unlock(&child->d_lock);
1361 spin_lock(&this_parent->d_lock);
1381 spin_unlock(&this_parent->d_lock);
1386 spin_unlock(&this_parent->d_lock);
1440 * this reason take rename_lock and d_lock on dentry and ancestors.
1449 spin_lock(&p->d_lock);
1451 spin_unlock(&p->d_lock);
1454 spin_unlock(&p->d_lock);
1456 spin_lock(&dentry->d_lock);
1464 spin_unlock(&dentry->d_lock);
1580 spin_lock(&data.victim->d_lock);
1582 spin_unlock(&data.victim->d_lock);
1666 spin_lock(&dentry->d_lock);
1668 spin_unlock(&dentry->d_lock);
1672 spin_unlock(&dentry->d_lock);
1749 spin_lock_init(&dentry->d_lock);
1750 seqcount_spinlock_init(&dentry->d_seq, &dentry->d_lock);
1792 spin_lock(&parent->d_lock);
1800 spin_unlock(&parent->d_lock);
1895 spin_lock(&dentry->d_lock);
1897 spin_unlock(&dentry->d_lock);
1941 spin_lock(&dentry->d_lock);
1952 spin_unlock(&dentry->d_lock);
2041 spin_lock(&dentry->d_lock);
2049 spin_unlock(&dentry->d_lock);
2220 * without taking d_lock and checking d_seq sequence count against @seq
2377 * Take d_lock when comparing a candidate dentry, to avoid races
2394 spin_lock(&dentry->d_lock);
2405 spin_unlock(&dentry->d_lock);
2408 spin_unlock(&dentry->d_lock);
2465 spin_lock(&dentry->d_lock);
2474 spin_unlock(&dentry->d_lock);
2498 spin_lock(&entry->d_lock);
2500 spin_unlock(&entry->d_lock);
2527 spin_unlock(&dentry->d_lock);
2529 spin_lock(&dentry->d_lock);
2609 spin_lock(&dentry->d_lock);
2626 spin_unlock(&dentry->d_lock);
2631 /* we can't take ->d_lock here; it's OK, though. */
2638 spin_unlock(&dentry->d_lock);
2665 spin_lock(&dentry->d_lock);
2682 spin_unlock(&dentry->d_lock);
2725 * Don't need alias->d_lock here, because aliases with
2735 spin_lock(&alias->d_lock);
2737 spin_unlock(&alias->d_lock);
2742 spin_unlock(&alias->d_lock);
2840 spin_lock(&target->d_parent->d_lock);
2843 spin_lock(&target->d_parent->d_lock);
2844 spin_lock_nested(&old_parent->d_lock, DENTRY_D_LOCK_NESTED);
2847 spin_lock(&old_parent->d_lock);
2849 spin_lock_nested(&target->d_parent->d_lock,
2852 spin_lock_nested(&dentry->d_lock, 2);
2853 spin_lock_nested(&target->d_lock, 3);
2897 spin_unlock(&dentry->d_parent->d_lock);
2899 spin_unlock(&old_parent->d_lock);
2900 spin_unlock(&target->d_lock);
2901 spin_unlock(&dentry->d_lock);
3142 spin_lock(&dentry->d_parent->d_lock);
3143 spin_lock_nested(&dentry->d_lock, DENTRY_D_LOCK_NESTED);
3146 spin_unlock(&dentry->d_lock);
3147 spin_unlock(&dentry->d_parent->d_lock);