Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3866248e authored by Al Viro's avatar Al Viro
Browse files

Finish pulling of -ESTALE handling to upper level in do_filp_open()



Don't bother with path_walk() (and its retry loop); link_path_walk()
will do it.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 806b681c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;