| /Linux-v5.4/fs/ |
| D | dcache.c | 288 spin_lock(&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() 506 spin_lock(&dentry->d_lock); in d_drop() 508 spin_unlock(&dentry->d_lock); in d_drop() 577 spin_unlock(&parent->d_lock); in __dentry_kill() 581 spin_unlock(&dentry->d_lock); in __dentry_kill() 586 spin_lock(&dentry->d_lock); in __dentry_kill() 591 spin_unlock(&dentry->d_lock); in __dentry_kill() [all …]
|
| D | libfs.c | 105 spin_lock(&dentry->d_lock); in scan_positives() 112 spin_lock_nested(&d->d_lock, DENTRY_D_LOCK_NESTED); in scan_positives() 115 spin_unlock(&d->d_lock); in scan_positives() 123 spin_unlock(&dentry->d_lock); in scan_positives() 125 spin_lock(&dentry->d_lock); in scan_positives() 128 spin_unlock(&dentry->d_lock); in scan_positives() 156 spin_lock(&dentry->d_lock); in dcache_dir_lseek() 161 spin_unlock(&dentry->d_lock); in dcache_dir_lseek() 209 spin_lock(&dentry->d_lock); in dcache_readdir() 214 spin_unlock(&dentry->d_lock); in dcache_readdir() [all …]
|
| D | dcookies.c | 103 spin_lock(&d->d_lock); in alloc_dcookie() 105 spin_unlock(&d->d_lock); in alloc_dcookie() 281 spin_lock(&d->d_lock); in free_dcookie() 283 spin_unlock(&d->d_lock); in free_dcookie()
|
| /Linux-v5.4/fs/nfs/ |
| D | namespace.c | 67 spin_lock(&dentry->d_lock); in nfs_path() 77 spin_unlock(&dentry->d_lock); in nfs_path() 81 spin_unlock(&dentry->d_lock); in nfs_path() 87 spin_unlock(&dentry->d_lock); in nfs_path() 96 spin_unlock(&dentry->d_lock); in nfs_path() 109 spin_unlock(&dentry->d_lock); in nfs_path() 115 spin_unlock(&dentry->d_lock); in nfs_path() 119 spin_unlock(&dentry->d_lock); in nfs_path()
|
| D | getroot.c | 56 spin_lock(&sb->s_root->d_lock); in nfs_superblock_set_dummy_root() 58 spin_unlock(&sb->s_root->d_lock); in nfs_superblock_set_dummy_root() 118 spin_lock(&ret->d_lock); in nfs_get_root() 124 spin_unlock(&ret->d_lock); in nfs_get_root()
|
| D | unlink.c | 136 spin_lock(&alias->d_lock); in nfs_call_unlink() 145 spin_unlock(&alias->d_lock); in nfs_call_unlink() 186 spin_lock(&dentry->d_lock); in nfs_async_unlink() 192 spin_unlock(&dentry->d_lock); in nfs_async_unlink() 201 spin_unlock(&dentry->d_lock); in nfs_async_unlink() 224 spin_lock(&dentry->d_lock); in nfs_complete_unlink() 228 spin_unlock(&dentry->d_lock); in nfs_complete_unlink() 238 spin_lock(&dentry->d_lock); in nfs_cancel_async_unlink() 244 spin_unlock(&dentry->d_lock); in nfs_cancel_async_unlink() 248 spin_unlock(&dentry->d_lock); in nfs_cancel_async_unlink()
|
| /Linux-v5.4/fs/9p/ |
| D | fid.c | 36 spin_lock(&dentry->d_lock); in v9fs_fid_add() 38 spin_unlock(&dentry->d_lock); in v9fs_fid_add() 60 spin_lock(&dentry->d_lock); in v9fs_fid_find() 67 spin_unlock(&dentry->d_lock); in v9fs_fid_find() 191 spin_lock(&dentry->d_lock); in v9fs_fid_lookup_with_uid() 193 spin_unlock(&dentry->d_lock); in v9fs_fid_lookup_with_uid() 198 spin_unlock(&dentry->d_lock); in v9fs_fid_lookup_with_uid()
|
| /Linux-v5.4/fs/autofs/ |
| D | expire.c | 82 spin_lock_nested(&child->d_lock, DENTRY_D_LOCK_NESTED); in positive_after() 85 spin_unlock(&child->d_lock); in positive_after() 88 spin_unlock(&child->d_lock); in positive_after() 104 spin_lock(&root->d_lock); in get_next_positive_subdir() 106 spin_unlock(&root->d_lock); in get_next_positive_subdir() 125 spin_lock(&p->d_lock); in get_next_positive_dentry() 133 spin_unlock(&p->d_lock); in get_next_positive_dentry() 134 spin_lock(&parent->d_lock); in get_next_positive_dentry() 138 spin_unlock(&p->d_lock); in get_next_positive_dentry()
|
| D | autofs_i.h | 185 spin_lock(&dentry->d_lock); in managed_dentry_set_managed() 187 spin_unlock(&dentry->d_lock); in managed_dentry_set_managed() 197 spin_lock(&dentry->d_lock); in managed_dentry_clear_managed() 199 spin_unlock(&dentry->d_lock); in managed_dentry_clear_managed()
|
| D | root.c | 148 spin_lock(&active->d_lock); in autofs_lookup_active() 168 spin_unlock(&active->d_lock); in autofs_lookup_active() 173 spin_unlock(&active->d_lock); in autofs_lookup_active() 208 spin_lock(&expiring->d_lock); in autofs_lookup_expiring() 228 spin_unlock(&expiring->d_lock); in autofs_lookup_expiring() 233 spin_unlock(&expiring->d_lock); in autofs_lookup_expiring() 512 spin_lock(&dentry->d_lock); in autofs_lookup() 522 spin_unlock(&dentry->d_lock); in autofs_lookup()
|
| /Linux-v5.4/fs/ocfs2/ |
| D | dcache.c | 59 spin_lock(&dentry->d_lock); in ocfs2_dentry_revalidate() 61 spin_unlock(&dentry->d_lock); in ocfs2_dentry_revalidate() 162 spin_lock(&dentry->d_lock); in ocfs2_find_local_alias() 168 spin_unlock(&dentry->d_lock); in ocfs2_find_local_alias() 172 spin_unlock(&dentry->d_lock); in ocfs2_find_local_alias()
|
| /Linux-v5.4/fs/afs/ |
| D | dir_silly.c | 49 spin_lock(&old->d_lock); in afs_do_silly_rename() 51 spin_unlock(&old->d_lock); in afs_do_silly_rename() 222 spin_lock(&alias->d_lock); in afs_silly_iput() 228 spin_unlock(&alias->d_lock); in afs_silly_iput()
|
| /Linux-v5.4/include/linux/ |
| D | dcache.h | 87 #define d_lock d_lockref.lock macro 351 spin_lock(&dentry->d_lock); in dont_mount() 353 spin_unlock(&dentry->d_lock); in dont_mount() 366 spin_lock(&dentry->d_lock); in d_lookup_done() 368 spin_unlock(&dentry->d_lock); in d_lookup_done()
|
| /Linux-v5.4/fs/ceph/ |
| D | dir.c | 152 spin_lock(&parent->d_lock); in __dcache_find_get_entry() 159 spin_unlock(&parent->d_lock); in __dcache_find_get_entry() 208 spin_lock(&dentry->d_lock); in __dcache_readdir() 215 spin_unlock(&dentry->d_lock); in __dcache_readdir() 236 spin_lock(&dentry->d_lock); in __dcache_readdir() 241 spin_unlock(&dentry->d_lock); in __dcache_readdir() 250 spin_unlock(&dentry->d_lock); in __dcache_readdir() 1267 if (!spin_trylock(&dentry->d_lock)) in __dentry_leases_walk() 1298 spin_unlock(&dentry->d_lock); in __dentry_leases_walk() 1308 spin_lock(&dentry->d_lock); in __dentry_leases_walk() [all …]
|
| 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()
|
| /Linux-v5.4/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-v5.4/fs/notify/ |
| D | fsnotify.c | 124 spin_lock(&alias->d_lock); in __fsnotify_update_child_dentry_flags() 129 spin_lock_nested(&child->d_lock, DENTRY_D_LOCK_NESTED); in __fsnotify_update_child_dentry_flags() 134 spin_unlock(&child->d_lock); in __fsnotify_update_child_dentry_flags() 136 spin_unlock(&alias->d_lock); in __fsnotify_update_child_dentry_flags()
|
| /Linux-v5.4/fs/configfs/ |
| D | inode.c | 220 spin_lock(&dentry->d_lock); in configfs_drop_dentry() 224 spin_unlock(&dentry->d_lock); in configfs_drop_dentry() 227 spin_unlock(&dentry->d_lock); in configfs_drop_dentry()
|
| D | configfs_internal.h | 125 spin_lock(&dentry->d_lock); in configfs_get_config_item() 130 spin_unlock(&dentry->d_lock); in configfs_get_config_item()
|
| /Linux-v5.4/fs/tracefs/ |
| D | inode.c | 577 spin_lock(&parent->d_lock); in tracefs_remove_recursive() 584 spin_unlock(&parent->d_lock); in tracefs_remove_recursive() 590 spin_unlock(&parent->d_lock); in tracefs_remove_recursive() 604 spin_unlock(&parent->d_lock); in tracefs_remove_recursive()
|
| /Linux-v5.4/fs/cifs/ |
| D | dir.c | 134 spin_lock(&temp->d_lock); in build_path_from_dentry_optional_prefix() 137 spin_unlock(&temp->d_lock); in build_path_from_dentry_optional_prefix() 145 spin_unlock(&temp->d_lock); in build_path_from_dentry_optional_prefix() 763 spin_lock(&direntry->d_lock); in cifs_d_revalidate() 765 spin_unlock(&direntry->d_lock); in cifs_d_revalidate()
|
| /Linux-v5.4/fs/crypto/ |
| D | hooks.c | 116 spin_lock(&dentry->d_lock); in __fscrypt_prepare_lookup() 118 spin_unlock(&dentry->d_lock); in __fscrypt_prepare_lookup()
|
| /Linux-v5.4/fs/debugfs/ |
| D | inode.c | 771 spin_lock(&parent->d_lock); in debugfs_remove_recursive() 778 spin_unlock(&parent->d_lock); in debugfs_remove_recursive() 784 spin_unlock(&parent->d_lock); in debugfs_remove_recursive() 798 spin_unlock(&parent->d_lock); in debugfs_remove_recursive()
|
| /Linux-v5.4/drivers/infiniband/hw/qib/ |
| D | qib_fs.c | 442 spin_lock(&tmp->d_lock); in remove_file() 445 spin_unlock(&tmp->d_lock); in remove_file() 448 spin_unlock(&tmp->d_lock); in remove_file()
|
| /Linux-v5.4/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,
|