Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312921
b: refs/heads/master
c: 72bd866
h: refs/heads/master
i:
  312919: 6c174f6
v: v3
  • Loading branch information
Al Viro committed Jul 14, 2012
1 parent 2f8ba79 commit 70564b2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 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: 00cd8dd3bf95f2cc8435b4cac01d9995635c6d0b
refs/heads/master: 72bd866a01fc62ccbc466f3eb7599b14c937e96b
20 changes: 10 additions & 10 deletions trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ static struct dentry *lookup_dcache(struct qstr *name, struct dentry *dir,
* dir->d_inode->i_mutex must be held
*/
static struct dentry *lookup_real(struct inode *dir, struct dentry *dentry,
struct nameidata *nd)
unsigned int flags)
{
struct dentry *old;

Expand All @@ -1090,7 +1090,7 @@ static struct dentry *lookup_real(struct inode *dir, struct dentry *dentry,
return ERR_PTR(-ENOENT);
}

old = dir->i_op->lookup(dir, dentry, nd ? nd->flags : 0);
old = dir->i_op->lookup(dir, dentry, flags);
if (unlikely(old)) {
dput(dentry);
dentry = old;
Expand All @@ -1099,16 +1099,16 @@ static struct dentry *lookup_real(struct inode *dir, struct dentry *dentry,
}

static struct dentry *__lookup_hash(struct qstr *name,
struct dentry *base, struct nameidata *nd)
struct dentry *base, unsigned int flags)
{
bool need_lookup;
struct dentry *dentry;

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

return lookup_real(base->d_inode, dentry, nd);
return lookup_real(base->d_inode, dentry, flags);
}

/*
Expand Down Expand Up @@ -1227,7 +1227,7 @@ static int lookup_slow(struct nameidata *nd, struct qstr *name,
BUG_ON(nd->inode != parent->d_inode);

mutex_lock(&parent->d_inode->i_mutex);
dentry = __lookup_hash(name, parent, nd);
dentry = __lookup_hash(name, parent, nd->flags);
mutex_unlock(&parent->d_inode->i_mutex);
if (IS_ERR(dentry))
return PTR_ERR(dentry);
Expand Down Expand Up @@ -1859,7 +1859,7 @@ int vfs_path_lookup(struct dentry *dentry, struct vfsmount *mnt,
*/
static struct dentry *lookup_hash(struct nameidata *nd)
{
return __lookup_hash(&nd->last, nd->path.dentry, nd);
return __lookup_hash(&nd->last, nd->path.dentry, nd->flags);
}

/**
Expand Down Expand Up @@ -1906,7 +1906,7 @@ struct dentry *lookup_one_len(const char *name, struct dentry *base, int len)
if (err)
return ERR_PTR(err);

return __lookup_hash(&this, base, NULL);
return __lookup_hash(&this, base, 0);
}

int user_path_at_empty(int dfd, const char __user *name, unsigned flags,
Expand Down Expand Up @@ -2310,7 +2310,7 @@ static int atomic_open(struct nameidata *nd, struct dentry *dentry,

no_open:
if (need_lookup) {
dentry = lookup_real(dir, dentry, nd);
dentry = lookup_real(dir, dentry, nd->flags);
if (IS_ERR(dentry))
return PTR_ERR(dentry);

Expand Down Expand Up @@ -2372,7 +2372,7 @@ static int lookup_open(struct nameidata *nd, struct path *path,
if (need_lookup) {
BUG_ON(dentry->d_inode);

dentry = lookup_real(dir_inode, dentry, nd);
dentry = lookup_real(dir_inode, dentry, nd->flags);
if (IS_ERR(dentry))
return PTR_ERR(dentry);
}
Expand Down

0 comments on commit 70564b2

Please sign in to comment.