mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-07 04:09:21 +00:00
fs: use path_walk in do_path_lookup
Since path_walk sets the total_link_count to 0 and calls link_path_walk, we can just call path_walk directly. Signed-off-by: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu> Acked-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
62ce39c531
commit
2dfdd266b9
1 changed files with 2 additions and 2 deletions
|
@ -1152,8 +1152,8 @@ static int fastcall do_path_lookup(int dfd, const char *name,
|
|||
|
||||
fput_light(file, fput_needed);
|
||||
}
|
||||
current->total_link_count = 0;
|
||||
retval = link_path_walk(name, nd);
|
||||
|
||||
retval = path_walk(name, nd);
|
||||
out:
|
||||
if (unlikely(!retval && !audit_dummy_context() && nd->dentry &&
|
||||
nd->dentry->d_inode))
|
||||
|
|
Loading…
Reference in a new issue