You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
debugfs_lookup(): switch to lookup_one_len_unlocked()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
+1
-4
@@ -270,10 +270,7 @@ struct dentry *debugfs_lookup(const char *name, struct dentry *parent)
|
|||||||
if (!parent)
|
if (!parent)
|
||||||
parent = debugfs_mount->mnt_root;
|
parent = debugfs_mount->mnt_root;
|
||||||
|
|
||||||
inode_lock(d_inode(parent));
|
dentry = lookup_one_len_unlocked(name, parent, strlen(name));
|
||||||
dentry = lookup_one_len(name, parent, strlen(name));
|
|
||||||
inode_unlock(d_inode(parent));
|
|
||||||
|
|
||||||
if (IS_ERR(dentry))
|
if (IS_ERR(dentry))
|
||||||
return NULL;
|
return NULL;
|
||||||
if (!d_really_is_positive(dentry)) {
|
if (!d_really_is_positive(dentry)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user