diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-07-22 15:46:21 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-07-22 15:57:53 -0400 |
commit | 1e0ea0014479f066ba26f937e8740b8902229616 (patch) | |
tree | ae673e2a88aab0d369c64786c47c926b80d8a87c /fs/namei.c | |
parent | 0bdaea9017b9d2b9996e153a71ee03555969b80e (diff) |
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 <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namei.c')
-rw-r--r-- | fs/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
1875 | return ERR_PTR(-EINVAL); | 1875 | return ERR_PTR(-EINVAL); |
1876 | } | 1876 | } |
1877 | mutex_lock_nested(&nd.path.dentry->d_inode->i_mutex, I_MUTEX_PARENT); | 1877 | mutex_lock_nested(&nd.path.dentry->d_inode->i_mutex, I_MUTEX_PARENT); |
1878 | d = lookup_one_len(nd.last.name, nd.path.dentry, nd.last.len); | 1878 | d = __lookup_hash(&nd.last, nd.path.dentry, 0); |
1879 | if (IS_ERR(d)) { | 1879 | if (IS_ERR(d)) { |
1880 | mutex_unlock(&nd.path.dentry->d_inode->i_mutex); | 1880 | mutex_unlock(&nd.path.dentry->d_inode->i_mutex); |
1881 | path_put(&nd.path); | 1881 | path_put(&nd.path); |