/Linux-v4.19/fs/ |
D | dcache.c | 288 spin_lock(&dentry->d_lock); in take_dentry_name_snapshot() 292 spin_unlock(&dentry->d_lock); in take_dentry_name_snapshot() 297 spin_unlock(&dentry->d_lock); in take_dentry_name_snapshot() 358 __releases(dentry->d_lock) in dentry_unlink_inode() 367 spin_unlock(&dentry->d_lock); in dentry_unlink_inode() 493 spin_lock(&dentry->d_lock); in d_drop() 495 spin_unlock(&dentry->d_lock); in d_drop() 564 spin_unlock(&parent->d_lock); in __dentry_kill() 568 spin_unlock(&dentry->d_lock); in __dentry_kill() 573 spin_lock(&dentry->d_lock); in __dentry_kill() [all …]
|
D | dcookies.c | 102 spin_lock(&d->d_lock); in alloc_dcookie() 104 spin_unlock(&d->d_lock); in alloc_dcookie() 280 spin_lock(&d->d_lock); in free_dcookie() 282 spin_unlock(&d->d_lock); in free_dcookie()
|
D | libfs.c | 127 spin_lock(&parent->d_lock); in move_cursor() 140 spin_unlock(&parent->d_lock); in move_cursor() 315 spin_lock(&dentry->d_lock); in simple_empty() 317 spin_lock_nested(&child->d_lock, DENTRY_D_LOCK_NESTED); in simple_empty() 319 spin_unlock(&child->d_lock); in simple_empty() 322 spin_unlock(&child->d_lock); in simple_empty() 326 spin_unlock(&dentry->d_lock); in simple_empty()
|
/Linux-v4.19/fs/autofs/ |
D | expire.c | 87 spin_lock(&root->d_lock); in get_next_positive_subdir() 98 spin_unlock(&root->d_lock); in get_next_positive_subdir() 106 spin_lock_nested(&q->d_lock, DENTRY_D_LOCK_NESTED); in get_next_positive_subdir() 109 spin_unlock(&q->d_lock); in get_next_positive_subdir() 114 spin_unlock(&q->d_lock); in get_next_positive_subdir() 115 spin_unlock(&root->d_lock); in get_next_positive_subdir() 139 spin_lock(&p->d_lock); in get_next_positive_dentry() 147 spin_unlock(&p->d_lock); in get_next_positive_dentry() 154 if (!spin_trylock(&parent->d_lock)) { in get_next_positive_dentry() 155 spin_unlock(&p->d_lock); in get_next_positive_dentry() [all …]
|
D | autofs_i.h | 182 spin_lock(&dentry->d_lock); in managed_dentry_set_managed() 184 spin_unlock(&dentry->d_lock); in managed_dentry_set_managed() 194 spin_lock(&dentry->d_lock); in managed_dentry_clear_managed() 196 spin_unlock(&dentry->d_lock); in managed_dentry_clear_managed()
|
D | root.c | 174 spin_lock(&active->d_lock); in autofs_lookup_active() 194 spin_unlock(&active->d_lock); in autofs_lookup_active() 199 spin_unlock(&active->d_lock); in autofs_lookup_active() 234 spin_lock(&expiring->d_lock); in autofs_lookup_expiring() 254 spin_unlock(&expiring->d_lock); in autofs_lookup_expiring() 259 spin_unlock(&expiring->d_lock); in autofs_lookup_expiring()
|
/Linux-v4.19/fs/nfs/ |
D | namespace.c | 66 spin_lock(&dentry->d_lock); in nfs_path() 76 spin_unlock(&dentry->d_lock); in nfs_path() 80 spin_unlock(&dentry->d_lock); in nfs_path() 86 spin_unlock(&dentry->d_lock); in nfs_path() 95 spin_unlock(&dentry->d_lock); in nfs_path() 108 spin_unlock(&dentry->d_lock); in nfs_path() 114 spin_unlock(&dentry->d_lock); in nfs_path() 118 spin_unlock(&dentry->d_lock); in nfs_path()
|
D | getroot.c | 60 spin_lock(&sb->s_root->d_lock); in nfs_superblock_set_dummy_root() 62 spin_unlock(&sb->s_root->d_lock); in nfs_superblock_set_dummy_root() 122 spin_lock(&ret->d_lock); in nfs_get_root() 128 spin_unlock(&ret->d_lock); in nfs_get_root()
|
D | unlink.c | 135 spin_lock(&alias->d_lock); in nfs_call_unlink() 144 spin_unlock(&alias->d_lock); in nfs_call_unlink() 189 spin_lock(&dentry->d_lock); in nfs_async_unlink() 195 spin_unlock(&dentry->d_lock); in nfs_async_unlink() 204 spin_unlock(&dentry->d_lock); in nfs_async_unlink() 228 spin_lock(&dentry->d_lock); in nfs_complete_unlink() 232 spin_unlock(&dentry->d_lock); in nfs_complete_unlink() 242 spin_lock(&dentry->d_lock); in nfs_cancel_async_unlink() 248 spin_unlock(&dentry->d_lock); in nfs_cancel_async_unlink() 252 spin_unlock(&dentry->d_lock); in nfs_cancel_async_unlink()
|
/Linux-v4.19/fs/9p/ |
D | fid.c | 51 spin_lock(&dentry->d_lock); in v9fs_fid_add() 53 spin_unlock(&dentry->d_lock); in v9fs_fid_add() 75 spin_lock(&dentry->d_lock); in v9fs_fid_find() 82 spin_unlock(&dentry->d_lock); in v9fs_fid_find() 206 spin_lock(&dentry->d_lock); in v9fs_fid_lookup_with_uid() 208 spin_unlock(&dentry->d_lock); in v9fs_fid_lookup_with_uid() 213 spin_unlock(&dentry->d_lock); in v9fs_fid_lookup_with_uid()
|
/Linux-v4.19/fs/ocfs2/ |
D | dcache.c | 73 spin_lock(&dentry->d_lock); in ocfs2_dentry_revalidate() 75 spin_unlock(&dentry->d_lock); in ocfs2_dentry_revalidate() 176 spin_lock(&dentry->d_lock); in ocfs2_find_local_alias() 182 spin_unlock(&dentry->d_lock); in ocfs2_find_local_alias() 186 spin_unlock(&dentry->d_lock); in ocfs2_find_local_alias()
|
/Linux-v4.19/include/linux/ |
D | dcache.h | 86 #define d_lock d_lockref.lock macro 352 spin_lock(&dentry->d_lock); in dont_mount() 354 spin_unlock(&dentry->d_lock); in dont_mount() 367 spin_lock(&dentry->d_lock); in d_lookup_done() 369 spin_unlock(&dentry->d_lock); in d_lookup_done()
|
/Linux-v4.19/fs/coda/ |
D | cache.c | 95 spin_lock(&parent->d_lock); in coda_flag_children() 101 spin_unlock(&parent->d_lock); in coda_flag_children()
|
/Linux-v4.19/fs/notify/ |
D | fsnotify.c | 128 spin_lock(&alias->d_lock); in __fsnotify_update_child_dentry_flags() 133 spin_lock_nested(&child->d_lock, DENTRY_D_LOCK_NESTED); in __fsnotify_update_child_dentry_flags() 138 spin_unlock(&child->d_lock); in __fsnotify_update_child_dentry_flags() 140 spin_unlock(&alias->d_lock); in __fsnotify_update_child_dentry_flags()
|
/Linux-v4.19/fs/ceph/ |
D | debugfs.c | 85 spin_lock(&req->r_dentry->d_lock); in mdsc_show() 90 spin_unlock(&req->r_dentry->d_lock); in mdsc_show() 104 spin_lock(&req->r_old_dentry->d_lock); in mdsc_show() 110 spin_unlock(&req->r_old_dentry->d_lock); in mdsc_show()
|
D | dir.c | 149 spin_lock(&parent->d_lock); in __dcache_find_get_entry() 156 spin_unlock(&parent->d_lock); in __dcache_find_get_entry() 205 spin_lock(&dentry->d_lock); in __dcache_readdir() 212 spin_unlock(&dentry->d_lock); in __dcache_readdir() 233 spin_lock(&dentry->d_lock); in __dcache_readdir() 238 spin_unlock(&dentry->d_lock); in __dcache_readdir() 246 spin_unlock(&dentry->d_lock); in __dcache_readdir() 1132 spin_lock(&dentry->d_lock); in ceph_invalidate_dentry_lease() 1135 spin_unlock(&dentry->d_lock); in ceph_invalidate_dentry_lease() 1153 spin_lock(&dentry->d_lock); in dentry_lease_is_valid() [all …]
|
/Linux-v4.19/fs/configfs/ |
D | inode.c | 248 spin_lock(&dentry->d_lock); in configfs_drop_dentry() 252 spin_unlock(&dentry->d_lock); in configfs_drop_dentry() 255 spin_unlock(&dentry->d_lock); in configfs_drop_dentry()
|
D | configfs_internal.h | 136 spin_lock(&dentry->d_lock); in configfs_get_config_item() 145 spin_unlock(&dentry->d_lock); in configfs_get_config_item()
|
/Linux-v4.19/fs/tracefs/ |
D | inode.c | 574 spin_lock(&parent->d_lock); in tracefs_remove_recursive() 581 spin_unlock(&parent->d_lock); in tracefs_remove_recursive() 587 spin_unlock(&parent->d_lock); in tracefs_remove_recursive() 601 spin_unlock(&parent->d_lock); in tracefs_remove_recursive()
|
/Linux-v4.19/fs/crypto/ |
D | hooks.c | 105 spin_lock(&dentry->d_lock); in __fscrypt_prepare_lookup() 107 spin_unlock(&dentry->d_lock); in __fscrypt_prepare_lookup()
|
D | crypto.c | 332 spin_lock(&dentry->d_lock); in fscrypt_d_revalidate() 334 spin_unlock(&dentry->d_lock); in fscrypt_d_revalidate()
|
/Linux-v4.19/fs/debugfs/ |
D | inode.c | 720 spin_lock(&parent->d_lock); in debugfs_remove_recursive() 727 spin_unlock(&parent->d_lock); in debugfs_remove_recursive() 733 spin_unlock(&parent->d_lock); in debugfs_remove_recursive() 747 spin_unlock(&parent->d_lock); in debugfs_remove_recursive()
|
/Linux-v4.19/fs/cifs/ |
D | dir.c | 135 spin_lock(&temp->d_lock); in build_path_from_dentry_optional_prefix() 138 spin_unlock(&temp->d_lock); in build_path_from_dentry_optional_prefix() 146 spin_unlock(&temp->d_lock); in build_path_from_dentry_optional_prefix() 859 spin_lock(&direntry->d_lock); in cifs_d_revalidate() 861 spin_unlock(&direntry->d_lock); in cifs_d_revalidate()
|
/Linux-v4.19/drivers/infiniband/hw/qib/ |
D | qib_fs.c | 441 spin_lock(&tmp->d_lock); in remove_file() 444 spin_unlock(&tmp->d_lock); in remove_file() 447 spin_unlock(&tmp->d_lock); in remove_file()
|
/Linux-v4.19/Documentation/filesystems/ |
D | path-lookup.txt | 89 hash, and its inode are protected by the per-dentry d_lock spinlock. A 90 reference is taken on the dentry (while the fields are verified under d_lock), 177 In refcount based dcache lookups, d_lock is used to serialise access to 213 is the traditional[*] way of performing dcache lookups using d_lock to 268 | name: "a.c" | We now take its d_lock, verify d_seq of this 270 | children:NULL | its refcount because we're holding d_lock. 273 Taking a refcount on a dentry from rcu-walk mode, by taking its d_lock, 311 * When the destination dentry is reached, drop rcu there (ie. take d_lock,
|