Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347849
b: refs/heads/master
c: 5d18f81
h: refs/heads/master
i:
  347847: 6eba118
v: v3
  • Loading branch information
Jeff Layton authored and Al Viro committed Dec 20, 2012
1 parent 92c2d31 commit 8308d78
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c6ee920698301febdf10df0b57039173a1edbd43
refs/heads/master: 5d18f8133cad85ccbb7fa6fd351d75025da32504
10 changes: 8 additions & 2 deletions trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -3440,8 +3440,9 @@ static long do_unlinkat(int dfd, const char __user *pathname)
struct dentry *dentry;
struct nameidata nd;
struct inode *inode = NULL;

name = user_path_parent(dfd, pathname, &nd, 0);
unsigned int lookup_flags = 0;
retry:
name = user_path_parent(dfd, pathname, &nd, lookup_flags);
if (IS_ERR(name))
return PTR_ERR(name);

Expand Down Expand Up @@ -3479,6 +3480,11 @@ static long do_unlinkat(int dfd, const char __user *pathname)
exit1:
path_put(&nd.path);
putname(name);
if (retry_estale(error, lookup_flags)) {
lookup_flags |= LOOKUP_REVAL;
inode = NULL;
goto retry;
}
return error;

slashes:
Expand Down

0 comments on commit 8308d78

Please sign in to comment.