| /linux-6.15/fs/ |
| H A D | dcache.c | 441 __releases(dentry->d_lock) in dentry_unlink_inode() 592 spin_lock(&dentry->d_lock); in d_drop() 784 spin_lock(&de->d_lock); in d_mark_dontcache() 786 spin_unlock(&de->d_lock); in d_mark_dontcache() 847 spin_lock(&dentry->d_lock); in fast_dput() 966 spin_lock(&ret->d_lock); in dget_parent() 975 spin_unlock(&ret->d_lock); in dget_parent() 1433 spin_lock(&p->d_lock); in d_set_mounted() 1435 spin_unlock(&p->d_lock); in d_set_mounted() 1438 spin_unlock(&p->d_lock); in d_set_mounted() [all …]
|
| H A D | libfs.c | 118 spin_lock(&dentry->d_lock); in scan_positives() 129 spin_unlock(&d->d_lock); in scan_positives() 141 spin_lock(&dentry->d_lock); in scan_positives() 144 spin_unlock(&dentry->d_lock); in scan_positives() 172 spin_lock(&dentry->d_lock); in dcache_dir_lseek() 216 spin_lock(&dentry->d_lock); in dcache_readdir() 220 spin_unlock(&dentry->d_lock); in dcache_readdir() 467 spin_lock(&parent->d_lock); in find_positive_dentry() 590 spin_lock(&parent->d_lock); in find_next_child() 597 spin_unlock(&d->d_lock); in find_next_child() [all …]
|
| /linux-6.15/fs/9p/ |
| H A D | fid.c | 37 spin_lock(&dentry->d_lock); in v9fs_fid_add() 39 spin_unlock(&dentry->d_lock); in v9fs_fid_add() 125 spin_lock(&dentry->d_lock); in v9fs_fid_find() 133 spin_unlock(&dentry->d_lock); in v9fs_fid_find() 261 spin_lock(&dentry->d_lock); in v9fs_fid_lookup_with_uid() 263 spin_unlock(&dentry->d_lock); in v9fs_fid_lookup_with_uid() 269 spin_unlock(&dentry->d_lock); in v9fs_fid_lookup_with_uid()
|
| H A D | vfs_dentry.c | 56 spin_lock(&dentry->d_lock); in v9fs_dentry_release() 58 spin_unlock(&dentry->d_lock); in v9fs_dentry_release()
|
| /linux-6.15/fs/nfs/ |
| H A 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()
|
| H A D | unlink.c | 140 spin_lock(&alias->d_lock); in nfs_call_unlink() 150 spin_unlock(&alias->d_lock); in nfs_call_unlink() 191 spin_lock(&dentry->d_lock); in nfs_async_unlink() 197 spin_unlock(&dentry->d_lock); in nfs_async_unlink() 206 spin_unlock(&dentry->d_lock); in nfs_async_unlink() 229 spin_lock(&dentry->d_lock); in nfs_complete_unlink() 233 spin_unlock(&dentry->d_lock); in nfs_complete_unlink() 245 spin_lock(&dentry->d_lock); in nfs_cancel_async_unlink() 251 spin_unlock(&dentry->d_lock); in nfs_cancel_async_unlink() 255 spin_unlock(&dentry->d_lock); in nfs_cancel_async_unlink()
|
| H A 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()
|
| H A D | dir.c | 1460 spin_lock(&dentry->d_lock); in nfs_set_verifier() 1462 spin_unlock(&dentry->d_lock); in nfs_set_verifier() 1485 spin_lock(&alias->d_lock); in nfs_clear_verifier_delegated() 1487 spin_unlock(&alias->d_lock); in nfs_clear_verifier_delegated() 2544 spin_lock(&dentry->d_lock); in nfs_unlink() 2547 spin_unlock(&dentry->d_lock); in nfs_unlink() 2561 spin_unlock(&dentry->d_lock); in nfs_unlink() 2566 spin_unlock(&dentry->d_lock); in nfs_unlink() 2751 spin_lock(&new_dentry->d_lock); in nfs_rename() 2755 spin_unlock(&new_dentry->d_lock); in nfs_rename() [all …]
|
| /linux-6.15/fs/autofs/ |
| H A D | expire.c | 79 spin_lock_nested(&child->d_lock, DENTRY_D_LOCK_NESTED); in positive_after() 82 spin_unlock(&child->d_lock); in positive_after() 85 spin_unlock(&child->d_lock); in positive_after() 101 spin_lock(&root->d_lock); in get_next_positive_subdir() 103 spin_unlock(&root->d_lock); in get_next_positive_subdir() 122 spin_lock(&p->d_lock); in get_next_positive_dentry() 130 spin_unlock(&p->d_lock); in get_next_positive_dentry() 131 spin_lock(&parent->d_lock); in get_next_positive_dentry() 135 spin_unlock(&p->d_lock); in get_next_positive_dentry()
|
| H A D | autofs_i.h | 195 spin_lock(&dentry->d_lock); in managed_dentry_set_managed() 197 spin_unlock(&dentry->d_lock); in managed_dentry_set_managed() 207 spin_lock(&dentry->d_lock); in managed_dentry_clear_managed() 209 spin_unlock(&dentry->d_lock); in managed_dentry_clear_managed()
|
| H A 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.15/fs/ceph/ |
| H A D | dir.c | 161 spin_lock(&parent->d_lock); in __dcache_find_get_entry() 168 spin_unlock(&parent->d_lock); in __dcache_find_get_entry() 220 spin_lock(&dentry->d_lock); in __dcache_readdir() 249 spin_lock(&dentry->d_lock); in __dcache_readdir() 265 spin_unlock(&dentry->d_lock); in __dcache_readdir() 348 spin_lock(&dentry->d_lock); in ceph_readdir() 1263 spin_lock(&dentry->d_lock); in ceph_async_unlink_cb() 1804 spin_lock(&dentry->d_lock); in ceph_invalidate_dentry_lease() 1849 spin_lock(&dentry->d_lock); in dentry_lease_is_valid() 2202 spin_lock(&dn->d_lock); in ceph_dentry_hash() [all …]
|
| H A 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()
|
| H A D | inode.c | 1398 spin_lock(&dentry->d_lock); in update_dentry_lease() 1401 spin_unlock(&dentry->d_lock); in update_dentry_lease() 1420 spin_lock(&dentry->d_lock); in update_dentry_lease_careful() 1446 spin_unlock(&dentry->d_lock); in update_dentry_lease_careful() 1470 spin_lock(&realdn->d_lock); in splice_dentry() 1603 spin_lock(&dn->d_lock); in ceph_fill_trace() 1605 spin_unlock(&dn->d_lock); in ceph_fill_trace() 2003 spin_lock(&dn->d_lock); in ceph_readdir_prepopulate() 2005 spin_unlock(&dn->d_lock); in ceph_readdir_prepopulate() 2014 spin_lock(&dn->d_lock); in ceph_readdir_prepopulate() [all …]
|
| /linux-6.15/fs/afs/ |
| H A 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.15/fs/coda/ |
| H A D | cache.c | 95 spin_lock(&parent->d_lock); in coda_flag_children() 102 spin_unlock(&parent->d_lock); in coda_flag_children()
|
| /linux-6.15/fs/configfs/ |
| H A D | inode.c | 209 spin_lock(&dentry->d_lock); in configfs_drop_dentry() 213 spin_unlock(&dentry->d_lock); in configfs_drop_dentry() 216 spin_unlock(&dentry->d_lock); in configfs_drop_dentry()
|
| H A 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.15/fs/notify/ |
| H A D | fsnotify.c | 141 spin_lock(&alias->d_lock); in fsnotify_set_children_dentry_flags() 146 spin_lock_nested(&child->d_lock, DENTRY_D_LOCK_NESTED); in fsnotify_set_children_dentry_flags() 148 spin_unlock(&child->d_lock); in fsnotify_set_children_dentry_flags() 150 spin_unlock(&alias->d_lock); in fsnotify_set_children_dentry_flags() 162 spin_lock(&dentry->d_lock); in fsnotify_clear_child_dentry_flag() 170 spin_unlock(&dentry->d_lock); in fsnotify_clear_child_dentry_flag()
|
| /linux-6.15/fs/ocfs2/ |
| H A D | dcache.c | 149 spin_lock(&dentry->d_lock); in ocfs2_find_local_alias() 155 spin_unlock(&dentry->d_lock); in ocfs2_find_local_alias() 159 spin_unlock(&dentry->d_lock); in ocfs2_find_local_alias()
|
| /linux-6.15/security/ |
| H A D | lsm_audit.c | 260 spin_lock(&a->u.dentry->d_lock); in audit_log_lsm_data() 262 spin_unlock(&a->u.dentry->d_lock); in audit_log_lsm_data() 281 spin_lock(&dentry->d_lock); in audit_log_lsm_data() 283 spin_unlock(&dentry->d_lock); in audit_log_lsm_data()
|
| /linux-6.15/include/linux/ |
| H A D | dcache.h | 88 #define d_lock d_lockref.lock macro 374 spin_lock(&dentry->d_lock); in dont_mount() 376 spin_unlock(&dentry->d_lock); in dont_mount()
|
| H A D | fscrypt.h | 293 spin_lock(&dentry->d_lock); in fscrypt_prepare_dentry() 295 spin_unlock(&dentry->d_lock); in fscrypt_prepare_dentry() 304 spin_lock(&dentry->d_lock); in fscrypt_prepare_dentry() 306 spin_unlock(&dentry->d_lock); in fscrypt_prepare_dentry()
|
| /linux-6.15/Documentation/filesystems/ |
| H A 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.15/fs/exportfs/ |
| H A D | expfs.c | 99 spin_lock(&dentry->d_lock); in clear_disconnected() 101 spin_unlock(&dentry->d_lock); in clear_disconnected()
|