Skip to content

Commit

Permalink
Finish pulling of -ESTALE handling to upper level in do_filp_open()
Browse files Browse the repository at this point in the history
Don't bother with path_walk() (and its retry loop); link_path_walk()
will do it.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Mar 5, 2010
1 parent 806b681 commit 3866248
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -1819,7 +1819,9 @@ struct file *do_filp_open(int dfd, const char *pathname,
return ERR_PTR(error);
if (force_reval)
nd.flags |= LOOKUP_REVAL;
error = path_walk(pathname, &nd);

current->total_link_count = 0;
error = link_path_walk(pathname, &nd);
if (error) {
filp = ERR_PTR(error);
goto out;
Expand Down

0 comments on commit 3866248

Please sign in to comment.