提交 cc2a5271 编写于 作者: A Al Viro

lookup_slow: get rid of name argument

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 e97cdc87
...@@ -1436,8 +1436,7 @@ static int lookup_fast(struct nameidata *nd, ...@@ -1436,8 +1436,7 @@ static int lookup_fast(struct nameidata *nd,
} }
/* Fast lookup failed, do it the slow way */ /* Fast lookup failed, do it the slow way */
static int lookup_slow(struct nameidata *nd, struct qstr *name, static int lookup_slow(struct nameidata *nd, struct path *path)
struct path *path)
{ {
struct dentry *dentry, *parent; struct dentry *dentry, *parent;
int err; int err;
...@@ -1446,7 +1445,7 @@ static int lookup_slow(struct nameidata *nd, struct qstr *name, ...@@ -1446,7 +1445,7 @@ static int lookup_slow(struct nameidata *nd, struct qstr *name,
BUG_ON(nd->inode != parent->d_inode); BUG_ON(nd->inode != parent->d_inode);
mutex_lock(&parent->d_inode->i_mutex); mutex_lock(&parent->d_inode->i_mutex);
dentry = __lookup_hash(name, parent, nd->flags); dentry = __lookup_hash(&nd->last, parent, nd->flags);
mutex_unlock(&parent->d_inode->i_mutex); mutex_unlock(&parent->d_inode->i_mutex);
if (IS_ERR(dentry)) if (IS_ERR(dentry))
return PTR_ERR(dentry); return PTR_ERR(dentry);
...@@ -1535,7 +1534,7 @@ static inline int walk_component(struct nameidata *nd, struct path *path, ...@@ -1535,7 +1534,7 @@ static inline int walk_component(struct nameidata *nd, struct path *path,
if (err < 0) if (err < 0)
goto out_err; goto out_err;
err = lookup_slow(nd, &nd->last, path); err = lookup_slow(nd, path);
if (err < 0) if (err < 0)
goto out_err; goto out_err;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册