Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312919
b: refs/heads/master
c: 201f956
h: refs/heads/master
i:
  312917: 35f2e0a
  312915: 7721da1
  312911: cffb4f4
v: v3
  • Loading branch information
Al Viro committed Jul 14, 2012
1 parent 90aa31a commit 6c174f6
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 4ce16ef3fed92c627b4b0136c02c85c81ee105e0
refs/heads/master: 201f956e43d4542723514e024d948011dd766d43
8 changes: 4 additions & 4 deletions trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@ static void follow_dotdot(struct nameidata *nd)
* dir->d_inode->i_mutex must be held
*/
static struct dentry *lookup_dcache(struct qstr *name, struct dentry *dir,
struct nameidata *nd, bool *need_lookup)
unsigned int flags, bool *need_lookup)
{
struct dentry *dentry;
int error;
Expand All @@ -1050,7 +1050,7 @@ static struct dentry *lookup_dcache(struct qstr *name, struct dentry *dir,
if (d_need_lookup(dentry)) {
*need_lookup = true;
} else if (dentry->d_flags & DCACHE_OP_REVALIDATE) {
error = d_revalidate(dentry, nd ? nd->flags : 0);
error = d_revalidate(dentry, flags);
if (unlikely(error <= 0)) {
if (error < 0) {
dput(dentry);
Expand Down Expand Up @@ -1104,7 +1104,7 @@ static struct dentry *__lookup_hash(struct qstr *name,
bool need_lookup;
struct dentry *dentry;

dentry = lookup_dcache(name, base, nd, &need_lookup);
dentry = lookup_dcache(name, base, nd ? nd->flags : 0, &need_lookup);
if (!need_lookup)
return dentry;

Expand Down Expand Up @@ -2356,7 +2356,7 @@ static int lookup_open(struct nameidata *nd, struct path *path,
bool need_lookup;

*opened &= ~FILE_CREATED;
dentry = lookup_dcache(&nd->last, dir, nd, &need_lookup);
dentry = lookup_dcache(&nd->last, dir, nd->flags, &need_lookup);
if (IS_ERR(dentry))
return PTR_ERR(dentry);

Expand Down

0 comments on commit 6c174f6

Please sign in to comment.