Home
last modified time | relevance | path

Searched refs:d_lock (Results 1 – 49 of 49) sorted by relevance

/linux-4.4.14/fs/
Ddcache.c320 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 …]
Dlibfs.c110 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 …]
Ddcookies.c102 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()
Dfs-writeback.c1993 spin_lock(&dentry->d_lock); in block_dump___mark_inode_dirty()
2001 spin_unlock(&dentry->d_lock); in block_dump___mark_inode_dirty()
Dnamespace.c774 spin_lock(&dentry->d_lock); in put_mountpoint()
776 spin_unlock(&dentry->d_lock); in put_mountpoint()
Dnamei.c3653 spin_lock(&dentry->d_lock); in dentry_unhash()
3656 spin_unlock(&dentry->d_lock); in dentry_unhash()
/linux-4.4.14/fs/notify/
Dvfsmount_mark.c45 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()
Dfsnotify.c71 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()
Dfsnotify.h57 &mnt->mnt_root->d_lock); in fsnotify_clear_marks_by_mount()
/linux-4.4.14/fs/autofs4/
Dexpire.c84 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 …]
Dautofs_i.h191 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()
Droot.c180 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/
Dnamespace.c66 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()
Dgetroot.c60 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()
Dunlink.c145 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()
Ddir.c1841 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/
Dfid.c51 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/
Ddcache.c73 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/
Dcache.c94 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/
Ddebugfs.c85 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()
Ddir.c45 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 …]
Dmds_client.c1798 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()
Dcaps.c3747 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()
Dinode.c943 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/
Dinode.c238 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()
Dconfigfs_internal.h126 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/
Dfsnotify_backend.h274 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()
Ddcache.h106 #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()
Dfs.h2887 spin_lock(&dentry->d_lock); in parent_ino()
2889 spin_unlock(&dentry->d_lock); in parent_ino()
/linux-4.4.14/fs/ncpfs/
Ddir.c410 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/
Dipath_fs.c272 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/
Dinode.c582 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/
Dinode.c604 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/
Ddir.c119 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/
Ddcache.c192 spin_lock(&de->d_lock); in ll_d_init()
199 spin_unlock(&de->d_lock); in ll_d_init()
Dnamei.c149 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()
Dllite_internal.h1438 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/
Dqib_fs.c457 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/
Dpath-lookup.txt89 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,
Dporting221 * the child's ->d_lock is held
347 particular things. Most of the time, a filesystem only needs ->d_lock, which
DLocking25 rename_lock ->d_lock may block rcu-walk
/linux-4.4.14/fs/exportfs/
Dexpfs.c97 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/
Dinode.c168 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/
Drpc_pipe.c428 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/
Dnamei_vfat.c35 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/
Ddir.c680 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/
Dtrace_events.c683 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/
Dnfs4xdr.c2056 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/
DRTFP.txt2531 d_lock on every component lookup. So I'm seeing improvements of 30-50%