/linux-6.1.9/fs/ |
D | dcache.c | 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() [all …]
|
D | libfs.c | 110 spin_lock(&dentry->d_lock); in scan_positives() 117 spin_lock_nested(&d->d_lock, DENTRY_D_LOCK_NESTED); in scan_positives() 120 spin_unlock(&d->d_lock); in scan_positives() 128 spin_unlock(&dentry->d_lock); in scan_positives() 130 spin_lock(&dentry->d_lock); in scan_positives() 133 spin_unlock(&dentry->d_lock); in scan_positives() 161 spin_lock(&dentry->d_lock); in dcache_dir_lseek() 166 spin_unlock(&dentry->d_lock); in dcache_dir_lseek() 214 spin_lock(&dentry->d_lock); in dcache_readdir() 219 spin_unlock(&dentry->d_lock); in dcache_readdir() [all …]
|
/linux-6.1.9/fs/9p/ |
D | fid.c | 38 spin_lock(&dentry->d_lock); in v9fs_fid_add() 40 spin_unlock(&dentry->d_lock); in v9fs_fid_add() 111 spin_lock(&dentry->d_lock); in v9fs_fid_find() 119 spin_unlock(&dentry->d_lock); in v9fs_fid_find() 248 spin_lock(&dentry->d_lock); in v9fs_fid_lookup_with_uid() 250 spin_unlock(&dentry->d_lock); in v9fs_fid_lookup_with_uid() 256 spin_unlock(&dentry->d_lock); in v9fs_fid_lookup_with_uid()
|
/linux-6.1.9/fs/nfs/ |
D | namespace.c | 72 spin_lock(&dentry->d_lock); in nfs_path() 82 spin_unlock(&dentry->d_lock); in nfs_path() 86 spin_unlock(&dentry->d_lock); in nfs_path() 92 spin_unlock(&dentry->d_lock); in nfs_path() 101 spin_unlock(&dentry->d_lock); in nfs_path() 114 spin_unlock(&dentry->d_lock); in nfs_path() 120 spin_unlock(&dentry->d_lock); in nfs_path() 124 spin_unlock(&dentry->d_lock); in nfs_path()
|
D | unlink.c | 140 spin_lock(&alias->d_lock); in nfs_call_unlink() 149 spin_unlock(&alias->d_lock); in nfs_call_unlink() 190 spin_lock(&dentry->d_lock); in nfs_async_unlink() 196 spin_unlock(&dentry->d_lock); in nfs_async_unlink() 205 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()
|
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() 119 spin_lock(&root->d_lock); in nfs_get_root() 125 spin_unlock(&root->d_lock); in nfs_get_root()
|
/linux-6.1.9/fs/tracefs/ |
D | inode.c | 186 spin_lock(&this_parent->d_lock); in set_gid() 197 spin_lock_nested(&dentry->d_lock, DENTRY_D_LOCK_NESTED); in set_gid() 202 spin_unlock(&this_parent->d_lock); in set_gid() 203 spin_release(&dentry->d_lock.dep_map, _RET_IP_); in set_gid() 205 spin_acquire(&this_parent->d_lock.dep_map, 0, 1, _RET_IP_); in set_gid() 208 spin_unlock(&dentry->d_lock); in set_gid() 219 spin_unlock(&child->d_lock); in set_gid() 220 spin_lock(&this_parent->d_lock); in set_gid() 233 spin_unlock(&this_parent->d_lock); in set_gid()
|
/linux-6.1.9/fs/ceph/ |
D | dir.c | 156 spin_lock(&parent->d_lock); in __dcache_find_get_entry() 163 spin_unlock(&parent->d_lock); in __dcache_find_get_entry() 212 spin_lock(&dentry->d_lock); in __dcache_readdir() 219 spin_unlock(&dentry->d_lock); in __dcache_readdir() 240 spin_lock(&dentry->d_lock); in __dcache_readdir() 245 spin_unlock(&dentry->d_lock); in __dcache_readdir() 254 spin_unlock(&dentry->d_lock); in __dcache_readdir() 333 spin_lock(&dentry->d_lock); in ceph_readdir() 335 spin_unlock(&dentry->d_lock); in ceph_readdir() 1105 spin_lock(&dentry->d_lock); in ceph_async_unlink_cb() [all …]
|
D | debugfs.c | 88 spin_lock(&req->r_dentry->d_lock); in mdsc_show() 93 spin_unlock(&req->r_dentry->d_lock); in mdsc_show() 107 spin_lock(&req->r_old_dentry->d_lock); in mdsc_show() 113 spin_unlock(&req->r_old_dentry->d_lock); in mdsc_show()
|
/linux-6.1.9/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 | 189 spin_lock(&dentry->d_lock); in managed_dentry_set_managed() 191 spin_unlock(&dentry->d_lock); in managed_dentry_set_managed() 201 spin_lock(&dentry->d_lock); in managed_dentry_clear_managed() 203 spin_unlock(&dentry->d_lock); in managed_dentry_clear_managed()
|
D | root.c | 153 spin_lock(&active->d_lock); in autofs_lookup_active() 173 spin_unlock(&active->d_lock); in autofs_lookup_active() 178 spin_unlock(&active->d_lock); in autofs_lookup_active() 213 spin_lock(&expiring->d_lock); in autofs_lookup_expiring() 233 spin_unlock(&expiring->d_lock); in autofs_lookup_expiring() 238 spin_unlock(&expiring->d_lock); in autofs_lookup_expiring() 531 spin_lock(&dentry->d_lock); in autofs_lookup() 541 spin_unlock(&dentry->d_lock); in autofs_lookup()
|
/linux-6.1.9/fs/ocfs2/ |
D | dcache.c | 57 spin_lock(&dentry->d_lock); in ocfs2_dentry_revalidate() 59 spin_unlock(&dentry->d_lock); in ocfs2_dentry_revalidate() 160 spin_lock(&dentry->d_lock); in ocfs2_find_local_alias() 166 spin_unlock(&dentry->d_lock); in ocfs2_find_local_alias() 170 spin_unlock(&dentry->d_lock); in ocfs2_find_local_alias()
|
/linux-6.1.9/fs/afs/ |
D | dir_silly.c | 31 spin_lock(&old->d_lock); in afs_silly_rename_edit_dir() 33 spin_unlock(&old->d_lock); in afs_silly_rename_edit_dir() 259 spin_lock(&alias->d_lock); in afs_silly_iput() 265 spin_unlock(&alias->d_lock); in afs_silly_iput()
|
/linux-6.1.9/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-6.1.9/fs/configfs/ |
D | inode.c | 210 spin_lock(&dentry->d_lock); in configfs_drop_dentry() 214 spin_unlock(&dentry->d_lock); in configfs_drop_dentry() 217 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-6.1.9/fs/notify/ |
D | fsnotify.c | 126 spin_lock(&alias->d_lock); in __fsnotify_update_child_dentry_flags() 131 spin_lock_nested(&child->d_lock, DENTRY_D_LOCK_NESTED); in __fsnotify_update_child_dentry_flags() 136 spin_unlock(&child->d_lock); in __fsnotify_update_child_dentry_flags() 138 spin_unlock(&alias->d_lock); in __fsnotify_update_child_dentry_flags()
|
/linux-6.1.9/include/linux/ |
D | dcache.h | 80 #define d_lock d_lockref.lock macro 350 spin_lock(&dentry->d_lock); in dont_mount() 352 spin_unlock(&dentry->d_lock); in dont_mount()
|
/linux-6.1.9/security/ |
D | lsm_audit.c | 265 spin_lock(&a->u.dentry->d_lock); in dump_common_audit_data() 267 spin_unlock(&a->u.dentry->d_lock); in dump_common_audit_data() 286 spin_lock(&dentry->d_lock); in dump_common_audit_data() 288 spin_unlock(&dentry->d_lock); in dump_common_audit_data()
|
/linux-6.1.9/fs/crypto/ |
D | hooks.c | 106 spin_lock(&dentry->d_lock); in __fscrypt_prepare_lookup() 108 spin_unlock(&dentry->d_lock); in __fscrypt_prepare_lookup()
|
/linux-6.1.9/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,
|
/linux-6.1.9/fs/overlayfs/ |
D | dir.c | 998 spin_lock(&d->d_lock); in ovl_get_redirect() 1010 spin_unlock(&d->d_lock); in ovl_get_redirect() 1016 spin_unlock(&d->d_lock); in ovl_get_redirect() 1081 spin_lock(&dentry->d_lock); in ovl_set_redirect() 1083 spin_unlock(&dentry->d_lock); in ovl_set_redirect()
|
/linux-6.1.9/arch/powerpc/platforms/cell/spufs/ |
D | inode.c | 152 spin_lock(&dentry->d_lock); in spufs_prune_dir() 156 spin_unlock(&dentry->d_lock); in spufs_prune_dir() 163 spin_unlock(&dentry->d_lock); in spufs_prune_dir()
|
/linux-6.1.9/fs/exportfs/ |
D | expfs.c | 99 spin_lock(&dentry->d_lock); in clear_disconnected() 101 spin_unlock(&dentry->d_lock); in clear_disconnected()
|