]> Pileus Git - ~andy/linux/commitdiff
use __lookup_hash() in kern_path_parent()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 22 Jul 2012 19:46:21 +0000 (23:46 +0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 22 Jul 2012 19:57:53 +0000 (23:57 +0400)
No need to bother with lookup_one_len() here - it's an overkill

Signed-off-by Al Viro <viro@zeniv.linux.org.uk>

fs/namei.c

index 1b64746876982e9dd7eb0fc26f5de899f6249b6e..c14dfac83c2bf1c8dc98f3ea21f9f3917e680555 100644 (file)
@@ -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);