projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bdaea9
)
use __lookup_hash() in kern_path_parent()
author
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 22 Jul 2012 19:46:21 +0000
(23:46 +0400)
committer
Al 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
patch
|
blob
|
blame
|
history
diff --git
a/fs/namei.c
b/fs/namei.c
index 1b64746876982e9dd7eb0fc26f5de899f6249b6e..c14dfac83c2bf1c8dc98f3ea21f9f3917e680555 100644
(file)
--- 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);