Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252700
b: refs/heads/master
c: d6e9bd2
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed May 27, 2011
1 parent c955759 commit 36059ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: dea3937619cb67d2ad08e2d29ae923875b1eeee9
refs/heads/master: d6e9bd256c88ce5f4b668249e363a74f51393daa
10 changes: 5 additions & 5 deletions trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -945,9 +945,6 @@ static bool __follow_mount_rcu(struct nameidata *nd, struct path *path,
path->dentry = mounted->mnt_root;
nd->seq = read_seqcount_begin(&path->dentry->d_seq);
}

if (unlikely(path->dentry->d_flags & DCACHE_NEED_AUTOMOUNT))
return false;
return true;
}

Expand Down Expand Up @@ -1164,8 +1161,11 @@ static int do_lookup(struct nameidata *nd, struct qstr *name,
}
path->mnt = mnt;
path->dentry = dentry;
if (likely(__follow_mount_rcu(nd, path, inode)))
return 0;
if (unlikely(!__follow_mount_rcu(nd, path, inode)))
goto unlazy;
if (unlikely(path->dentry->d_flags & DCACHE_NEED_AUTOMOUNT))
goto unlazy;
return 0;
unlazy:
if (unlazy_walk(nd, dentry))
return -ECHILD;
Expand Down

0 comments on commit 36059ab

Please sign in to comment.