Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312918
b: refs/heads/master
c: 4ce16ef
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Jul 14, 2012
1 parent 35f2e0a commit 90aa31a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 0b728e1911cbe6e24020727c3870628b9653f32a
refs/heads/master: 4ce16ef3fed92c627b4b0136c02c85c81ee105e0
12 changes: 6 additions & 6 deletions trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,9 +463,9 @@ static int unlazy_walk(struct nameidata *nd, struct dentry *dentry)
return -ECHILD;
}

static inline int d_revalidate(struct dentry *dentry, struct nameidata *nd)
static inline int d_revalidate(struct dentry *dentry, unsigned int flags)
{
return dentry->d_op->d_revalidate(dentry, nd ? nd->flags : 0);
return dentry->d_op->d_revalidate(dentry, flags);
}

/**
Expand Down Expand Up @@ -511,7 +511,7 @@ static int complete_walk(struct nameidata *nd)
return 0;

/* Note: we do not d_invalidate() */
status = d_revalidate(dentry, nd);
status = d_revalidate(dentry, nd->flags);
if (status > 0)
return 0;

Expand Down Expand Up @@ -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);
error = d_revalidate(dentry, nd ? nd->flags : 0);
if (unlikely(error <= 0)) {
if (error < 0) {
dput(dentry);
Expand Down Expand Up @@ -1158,7 +1158,7 @@ static int lookup_fast(struct nameidata *nd, struct qstr *name,
if (unlikely(d_need_lookup(dentry)))
goto unlazy;
if (unlikely(dentry->d_flags & DCACHE_OP_REVALIDATE)) {
status = d_revalidate(dentry, nd);
status = d_revalidate(dentry, nd->flags);
if (unlikely(status <= 0)) {
if (status != -ECHILD)
need_reval = 0;
Expand Down Expand Up @@ -1188,7 +1188,7 @@ static int lookup_fast(struct nameidata *nd, struct qstr *name,
}

if (unlikely(dentry->d_flags & DCACHE_OP_REVALIDATE) && need_reval)
status = d_revalidate(dentry, nd);
status = d_revalidate(dentry, nd->flags);
if (unlikely(status <= 0)) {
if (status < 0) {
dput(dentry);
Expand Down

0 comments on commit 90aa31a

Please sign in to comment.