From: Al Viro Date: Sun, 22 Jul 2012 19:46:21 +0000 (+0400) Subject: use __lookup_hash() in kern_path_parent() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1e0ea0014479f066ba26f937e8740b8902229616;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git use __lookup_hash() in kern_path_parent() No need to bother with lookup_one_len() here - it's an overkill Signed-off-by Al Viro --- diff --git a/fs/namei.c b/fs/namei.c index 1b6474687698..c14dfac83c2b 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -1875,7 +1875,7 @@ struct dentry *kern_path_locked(const char *name, struct path *path) return ERR_PTR(-EINVAL); } mutex_lock_nested(&nd.path.dentry->d_inode->i_mutex, I_MUTEX_PARENT); - d = lookup_one_len(nd.last.name, nd.path.dentry, nd.last.len); + d = __lookup_hash(&nd.last, nd.path.dentry, 0); if (IS_ERR(d)) { mutex_unlock(&nd.path.dentry->d_inode->i_mutex); path_put(&nd.path);