aboutsummaryrefslogtreecommitdiff
path: root/fs/debugfs
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org> 2018-04-04 12:05:25 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org> 2018-04-04 12:05:25 -0700
commit2e08edc5c50a01dc52c005fd939c24476eaf55ef (patch)
treee5d91ecfc9d966dd4cc006cf005732bd569be5c5 /fs/debugfs
parentMerge branch 'userns-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/... (diff)
parentMerge branch 'old.dcache' into work.dcache (diff)
downloadlinux-2e08edc5c50a01dc52c005fd939c24476eaf55ef.tar.gz
linux-2e08edc5c50a01dc52c005fd939c24476eaf55ef.tar.bz2
linux-2e08edc5c50a01dc52c005fd939c24476eaf55ef.zip
Merge branch 'work.dcache' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull vfs dcache updates from Al Viro: "Part of this is what the trylock loop elimination series has turned into, part making d_move() preserve the parent (and thus the path) of victim, plus some general cleanups" * 'work.dcache' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (22 commits) d_genocide: move export to definition fold dentry_lock_for_move() into its sole caller and clean it up make non-exchanging __d_move() copy ->d_parent rather than swap them oprofilefs: don't oops on allocation failure lustre: get rid of pointless casts to struct dentry * debugfs_lookup(): switch to lookup_one_len_unlocked() fold lookup_real() into __lookup_hash() take out orphan externs (empty_string/slash_string) split d_path() and friends into a separate file dcache.c: trim includes fs/dcache: Avoid a try_lock loop in shrink_dentry_list() get rid of trylock loop around dentry_kill() handle move to LRU in retain_dentry() dput(): consolidate the "do we need to retain it?" into an inlined helper split the slow part of lock_parent() off now lock_parent() can't run into killed dentry get rid of trylock loop in locking dentries on shrink list d_delete(): get rid of trylock loop fs/dcache: Move dentry_kill() below lock_parent() fs/dcache: Remove stale comment from dentry_kill() ...
Diffstat (limited to 'fs/debugfs')
-rw-r--r--fs/debugfs/inode.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
index 63a998c3f252..13b01351dd1c 100644
--- a/fs/debugfs/inode.c
+++ b/fs/debugfs/inode.c
@@ -270,10 +270,7 @@ struct dentry *debugfs_lookup(const char *name, struct dentry *parent)
if (!parent)
parent = debugfs_mount->mnt_root;
- inode_lock(d_inode(parent));
- dentry = lookup_one_len(name, parent, strlen(name));
- inode_unlock(d_inode(parent));
-
+ dentry = lookup_one_len_unlocked(name, parent, strlen(name));
if (IS_ERR(dentry))
return NULL;
if (!d_really_is_positive(dentry)) {