/linux-4.4.14/fs/ |
D | dcache.c | 320 lockdep_assert_held(&dentry->d_lock); in dentry_rcuwalk_invalidate() 331 __releases(dentry->d_lock) in dentry_iput() 338 spin_unlock(&dentry->d_lock); in dentry_iput() 347 spin_unlock(&dentry->d_lock); in dentry_iput() 356 __releases(dentry->d_lock) in dentry_unlink_inode() 365 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() 531 spin_unlock(&parent->d_lock); in __dentry_kill() 542 spin_lock(&dentry->d_lock); in __dentry_kill() [all …]
|
D | libfs.c | 110 spin_lock(&dentry->d_lock); in dcache_dir_lseek() 117 spin_lock_nested(&next->d_lock, DENTRY_D_LOCK_NESTED); in dcache_dir_lseek() 120 spin_unlock(&next->d_lock); in dcache_dir_lseek() 124 spin_unlock(&dentry->d_lock); in dcache_dir_lseek() 152 spin_lock(&dentry->d_lock); in dcache_readdir() 158 spin_lock_nested(&next->d_lock, DENTRY_D_LOCK_NESTED); in dcache_readdir() 160 spin_unlock(&next->d_lock); in dcache_readdir() 164 spin_unlock(&next->d_lock); in dcache_readdir() 165 spin_unlock(&dentry->d_lock); in dcache_readdir() 169 spin_lock(&dentry->d_lock); in dcache_readdir() [all …]
|
D | dcookies.c | 102 spin_lock(&d->d_lock); in alloc_dcookie() 104 spin_unlock(&d->d_lock); in alloc_dcookie() 275 spin_lock(&d->d_lock); in free_dcookie() 277 spin_unlock(&d->d_lock); in free_dcookie()
|
D | fs-writeback.c | 1993 spin_lock(&dentry->d_lock); in block_dump___mark_inode_dirty() 2001 spin_unlock(&dentry->d_lock); in block_dump___mark_inode_dirty()
|
D | namespace.c | 774 spin_lock(&dentry->d_lock); in put_mountpoint() 776 spin_unlock(&dentry->d_lock); in put_mountpoint()
|
D | namei.c | 3653 spin_lock(&dentry->d_lock); in dentry_unhash() 3656 spin_unlock(&dentry->d_lock); in dentry_unhash()
|
/linux-4.4.14/fs/notify/ |
D | vfsmount_mark.c | 45 spin_lock(&mnt->mnt_root->d_lock); in fsnotify_recalc_vfsmount_mask() 47 spin_unlock(&mnt->mnt_root->d_lock); in fsnotify_recalc_vfsmount_mask() 58 spin_lock(&mnt->mnt_root->d_lock); in fsnotify_destroy_vfsmount_mark() 64 spin_unlock(&mnt->mnt_root->d_lock); in fsnotify_destroy_vfsmount_mark() 77 spin_lock(&mnt->mnt_root->d_lock); in fsnotify_find_vfsmount_mark() 79 spin_unlock(&mnt->mnt_root->d_lock); in fsnotify_find_vfsmount_mark() 101 spin_lock(&mnt->mnt_root->d_lock); in fsnotify_add_vfsmount_mark() 105 spin_unlock(&mnt->mnt_root->d_lock); in fsnotify_add_vfsmount_mark()
|
D | fsnotify.c | 71 spin_lock(&alias->d_lock); in __fsnotify_update_child_dentry_flags() 76 spin_lock_nested(&child->d_lock, DENTRY_D_LOCK_NESTED); in __fsnotify_update_child_dentry_flags() 81 spin_unlock(&child->d_lock); in __fsnotify_update_child_dentry_flags() 83 spin_unlock(&alias->d_lock); in __fsnotify_update_child_dentry_flags()
|
D | fsnotify.h | 57 &mnt->mnt_root->d_lock); in fsnotify_clear_marks_by_mount()
|
/linux-4.4.14/fs/autofs4/ |
D | expire.c | 84 spin_lock(&root->d_lock); in get_next_positive_subdir() 95 spin_unlock(&root->d_lock); in get_next_positive_subdir() 103 spin_lock_nested(&q->d_lock, DENTRY_D_LOCK_NESTED); in get_next_positive_subdir() 106 spin_unlock(&q->d_lock); in get_next_positive_subdir() 111 spin_unlock(&q->d_lock); in get_next_positive_subdir() 112 spin_unlock(&root->d_lock); in get_next_positive_subdir() 136 spin_lock(&p->d_lock); in get_next_positive_dentry() 144 spin_unlock(&p->d_lock); in get_next_positive_dentry() 151 if (!spin_trylock(&parent->d_lock)) { in get_next_positive_dentry() 152 spin_unlock(&p->d_lock); in get_next_positive_dentry() [all …]
|
D | autofs_i.h | 191 spin_lock(&dentry->d_lock); in managed_dentry_set_managed() 193 spin_unlock(&dentry->d_lock); in managed_dentry_set_managed() 203 spin_lock(&dentry->d_lock); in managed_dentry_clear_managed() 205 spin_unlock(&dentry->d_lock); in managed_dentry_clear_managed()
|
D | root.c | 180 spin_lock(&active->d_lock); in autofs4_lookup_active() 200 spin_unlock(&active->d_lock); in autofs4_lookup_active() 205 spin_unlock(&active->d_lock); in autofs4_lookup_active() 240 spin_lock(&expiring->d_lock); in autofs4_lookup_expiring() 260 spin_unlock(&expiring->d_lock); in autofs4_lookup_expiring() 265 spin_unlock(&expiring->d_lock); in autofs4_lookup_expiring()
|
/linux-4.4.14/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 | 145 spin_lock(&alias->d_lock); in nfs_do_call_unlink() 154 spin_unlock(&alias->d_lock); in nfs_do_call_unlink() 270 spin_lock(&dentry->d_lock); in nfs_async_unlink() 276 spin_unlock(&dentry->d_lock); in nfs_async_unlink() 285 spin_unlock(&dentry->d_lock); in nfs_async_unlink() 307 spin_lock(&dentry->d_lock); in nfs_complete_unlink() 313 spin_unlock(&dentry->d_lock); in nfs_complete_unlink() 323 spin_lock(&dentry->d_lock); in nfs_cancel_async_unlink() 329 spin_unlock(&dentry->d_lock); in nfs_cancel_async_unlink() 333 spin_unlock(&dentry->d_lock); in nfs_cancel_async_unlink()
|
D | dir.c | 1841 spin_lock(&dentry->d_lock); in nfs_unlink() 1843 spin_unlock(&dentry->d_lock); in nfs_unlink() 1853 spin_unlock(&dentry->d_lock); in nfs_unlink()
|
/linux-4.4.14/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-4.4.14/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-4.4.14/fs/coda/ |
D | cache.c | 94 spin_lock(&parent->d_lock); in coda_flag_children() 100 spin_unlock(&parent->d_lock); in coda_flag_children()
|
/linux-4.4.14/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 | 45 spin_lock(&dentry->d_lock); in ceph_init_dentry() 67 spin_unlock(&dentry->d_lock); in ceph_init_dentry() 78 spin_lock(&dentry->d_lock); in ceph_get_dentry_parent_inode() 83 spin_unlock(&dentry->d_lock); in ceph_get_dentry_parent_inode() 189 spin_lock(&parent->d_lock); in __dcache_readdir() 197 spin_unlock(&parent->d_lock); in __dcache_readdir() 206 spin_lock(&dentry->d_lock); in __dcache_readdir() 214 spin_unlock(&dentry->d_lock); in __dcache_readdir() 1017 spin_lock(&dentry->d_lock); in ceph_invalidate_dentry_lease() 1020 spin_unlock(&dentry->d_lock); in ceph_invalidate_dentry_lease() [all …]
|
D | mds_client.c | 1798 spin_lock(&temp->d_lock); in ceph_mdsc_build_path() 1805 spin_unlock(&temp->d_lock); in ceph_mdsc_build_path() 1810 spin_unlock(&temp->d_lock); in ceph_mdsc_build_path() 1816 spin_unlock(&temp->d_lock); in ceph_mdsc_build_path() 3209 spin_lock(&dentry->d_lock); in handle_lease() 3237 spin_unlock(&dentry->d_lock); in handle_lease() 3310 spin_lock(&dentry->d_lock); in ceph_mdsc_lease_release() 3319 spin_unlock(&dentry->d_lock); in ceph_mdsc_lease_release() 3327 spin_unlock(&dentry->d_lock); in ceph_mdsc_lease_release()
|
D | caps.c | 3747 spin_lock(&dentry->d_lock); in ceph_encode_dentry_release() 3750 spin_unlock(&dentry->d_lock); in ceph_encode_dentry_release() 3754 spin_lock(&dentry->d_lock); in ceph_encode_dentry_release() 3764 spin_unlock(&dentry->d_lock); in ceph_encode_dentry_release()
|
D | inode.c | 943 spin_lock(&dentry->d_lock); in update_dentry_lease() 971 spin_unlock(&dentry->d_lock); in update_dentry_lease()
|
/linux-4.4.14/fs/configfs/ |
D | inode.c | 238 spin_lock(&dentry->d_lock); in configfs_drop_dentry() 242 spin_unlock(&dentry->d_lock); in configfs_drop_dentry() 245 spin_unlock(&dentry->d_lock); in configfs_drop_dentry()
|
D | configfs_internal.h | 126 spin_lock(&dentry->d_lock); in configfs_get_config_item() 135 spin_unlock(&dentry->d_lock); in configfs_get_config_item()
|
/linux-4.4.14/include/linux/ |
D | fsnotify_backend.h | 274 assert_spin_locked(&dentry->d_lock); in __fsnotify_update_dcache_flags() 298 spin_lock(&dentry->d_lock); in __fsnotify_d_instantiate() 300 spin_unlock(&dentry->d_lock); in __fsnotify_d_instantiate()
|
D | dcache.h | 106 #define d_lock d_lockref.lock macro 392 spin_lock(&dentry->d_lock); in dont_mount() 394 spin_unlock(&dentry->d_lock); in dont_mount()
|
D | fs.h | 2887 spin_lock(&dentry->d_lock); in parent_ino() 2889 spin_unlock(&dentry->d_lock); in parent_ino()
|
/linux-4.4.14/fs/ncpfs/ |
D | dir.c | 410 spin_lock(&parent->d_lock); in ncp_invalidate_dircache_entries() 415 spin_unlock(&parent->d_lock); in ncp_invalidate_dircache_entries() 483 spin_lock(&dentry->d_lock); in ncp_readdir() 485 spin_unlock(&dentry->d_lock); in ncp_readdir() 490 spin_unlock(&dentry->d_lock); in ncp_readdir() 493 spin_unlock(&dentry->d_lock); in ncp_readdir() 542 spin_lock(&dentry->d_lock); in ncp_readdir() 544 spin_unlock(&dentry->d_lock); in ncp_readdir() 635 spin_lock(&dentry->d_lock); in ncp_fill_cache() 637 spin_unlock(&dentry->d_lock); in ncp_fill_cache()
|
/linux-4.4.14/drivers/staging/rdma/ipath/ |
D | ipath_fs.c | 272 spin_lock(&tmp->d_lock); in remove_file() 276 spin_unlock(&tmp->d_lock); in remove_file() 279 spin_unlock(&tmp->d_lock); in remove_file()
|
/linux-4.4.14/fs/tracefs/ |
D | inode.c | 582 spin_lock(&parent->d_lock); in tracefs_remove_recursive() 589 spin_unlock(&parent->d_lock); in tracefs_remove_recursive() 595 spin_unlock(&parent->d_lock); in tracefs_remove_recursive() 609 spin_unlock(&parent->d_lock); in tracefs_remove_recursive()
|
/linux-4.4.14/fs/debugfs/ |
D | inode.c | 604 spin_lock(&parent->d_lock); in debugfs_remove_recursive() 611 spin_unlock(&parent->d_lock); in debugfs_remove_recursive() 617 spin_unlock(&parent->d_lock); in debugfs_remove_recursive() 631 spin_unlock(&parent->d_lock); in debugfs_remove_recursive()
|
/linux-4.4.14/fs/cifs/ |
D | dir.c | 119 spin_lock(&temp->d_lock); in build_path_from_dentry() 122 spin_unlock(&temp->d_lock); in build_path_from_dentry() 130 spin_unlock(&temp->d_lock); in build_path_from_dentry() 807 spin_lock(&direntry->d_lock); in cifs_d_revalidate() 809 spin_unlock(&direntry->d_lock); in cifs_d_revalidate()
|
/linux-4.4.14/drivers/staging/lustre/lustre/llite/ |
D | dcache.c | 192 spin_lock(&de->d_lock); in ll_d_init() 199 spin_unlock(&de->d_lock); in ll_d_init()
|
D | namei.c | 149 spin_lock(&dentry->d_lock); in ll_invalidate_negative_children() 160 spin_unlock(&dentry->d_lock); in ll_invalidate_negative_children() 345 spin_lock(&alias->d_lock); in ll_find_alias() 355 spin_unlock(&alias->d_lock); in ll_find_alias() 362 spin_lock(&alias->d_lock); in ll_find_alias() 364 spin_unlock(&alias->d_lock); in ll_find_alias()
|
D | llite_internal.h | 1438 spin_lock_nested(&dentry->d_lock, in d_lustre_invalidate() 1451 spin_unlock(&dentry->d_lock); in d_lustre_invalidate() 1456 spin_lock(&dentry->d_lock); in d_lustre_revalidate() 1459 spin_unlock(&dentry->d_lock); in d_lustre_revalidate()
|
/linux-4.4.14/drivers/infiniband/hw/qib/ |
D | qib_fs.c | 457 spin_lock(&tmp->d_lock); in remove_file() 460 spin_unlock(&tmp->d_lock); in remove_file() 463 spin_unlock(&tmp->d_lock); in remove_file()
|
/linux-4.4.14/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,
|
D | porting | 221 * the child's ->d_lock is held 347 particular things. Most of the time, a filesystem only needs ->d_lock, which
|
D | Locking | 25 rename_lock ->d_lock may block rcu-walk
|
/linux-4.4.14/fs/exportfs/ |
D | expfs.c | 97 spin_lock(&dentry->d_lock); in clear_disconnected() 99 spin_unlock(&dentry->d_lock); in clear_disconnected()
|
/linux-4.4.14/arch/powerpc/platforms/cell/spufs/ |
D | inode.c | 168 spin_lock(&dentry->d_lock); in spufs_prune_dir() 172 spin_unlock(&dentry->d_lock); in spufs_prune_dir() 179 spin_unlock(&dentry->d_lock); in spufs_prune_dir()
|
/linux-4.4.14/net/sunrpc/ |
D | rpc_pipe.c | 428 spin_lock(&file->f_path.dentry->d_lock); in rpc_info_open() 432 spin_unlock(&file->f_path.dentry->d_lock); in rpc_info_open() 435 spin_unlock(&file->f_path.dentry->d_lock); in rpc_info_open()
|
/linux-4.4.14/fs/fat/ |
D | namei_vfat.c | 35 spin_lock(&dentry->d_lock); in vfat_revalidate_shortname() 38 spin_unlock(&dentry->d_lock); in vfat_revalidate_shortname()
|
/linux-4.4.14/fs/afs/ |
D | dir.c | 680 spin_lock(&dentry->d_lock); in afs_d_revalidate() 682 spin_unlock(&dentry->d_lock); in afs_d_revalidate()
|
/linux-4.4.14/kernel/trace/ |
D | trace_events.c | 683 spin_lock(&dir->d_lock); /* probably unneeded */ in remove_event_file_dir() 688 spin_unlock(&dir->d_lock); in remove_event_file_dir()
|
/linux-4.4.14/fs/nfsd/ |
D | nfs4xdr.c | 2056 spin_lock(&dentry->d_lock); in nfsd4_encode_path() 2060 spin_unlock(&dentry->d_lock); in nfsd4_encode_path() 2065 spin_unlock(&dentry->d_lock); in nfsd4_encode_path()
|
/linux-4.4.14/Documentation/RCU/ |
D | RTFP.txt | 2531 d_lock on every component lookup. So I'm seeing improvements of 30-50%
|