From: "Josef 'Jeff' Sipek" 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 Acked-by: Christoph Hellwig Signed-off-by: Andrew Morton --- fs/namei.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -puN fs/namei.c~fs-use-path_walk-in-do_path_lookup fs/namei.c --- a/fs/namei.c~fs-use-path_walk-in-do_path_lookup +++ a/fs/namei.c @@ -1152,8 +1152,8 @@ static int fastcall do_path_lookup(int d 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)) _