Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230863
b: refs/heads/master
c: f20877d
h: refs/heads/master
i:
  230861: 925d664
  230859: 824f4fa
  230855: 24c3131
  230847: cfd36f9
v: v3
  • Loading branch information
J. R. Okajima authored and Nick Piggin committed Jan 14, 2011
1 parent c2f1628 commit 390f686
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: 657e94b673a805b427903c5628e95348235fad06
refs/heads/master: f20877d94a74557b7c28b4ed8920d834c31e0ea5
10 changes: 6 additions & 4 deletions trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -2122,11 +2122,13 @@ static struct file *do_last(struct nameidata *nd, struct path *path,
dir = nd->path.dentry;
case LAST_DOT:
if (need_reval_dot(dir)) {
error = d_revalidate(nd->path.dentry, nd);
if (!error)
error = -ESTALE;
if (error < 0)
int status = d_revalidate(nd->path.dentry, nd);
if (!status)
status = -ESTALE;
if (status < 0) {
error = status;
goto exit;
}
}
/* fallthrough */
case LAST_ROOT:
Expand Down

0 comments on commit 390f686

Please sign in to comment.