Finish pulling of -ESTALE handling to upper level in do_filp_open()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 26 Dec 2009 12:21:48 +0000 (07:21 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 5 Mar 2010 14:01:38 +0000 (09:01 -0500)
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>
fs/namei.c

index 08da937b1ee244212eff3cb4a97c4241f6d3ab2f..adfbaf5c04a7669d0d143e027895fa72c7f8f796 100644 (file)
@@ -1819,7 +1819,9 @@ reval:
                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;