Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158562
b: refs/heads/master
c: b5bb61d
h: refs/heads/master
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Aug 9, 2009
1 parent bcbf63c commit 6869fcd
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 7364af6a2d5e708b5c6fee3cce08d1bd7b27c9f1
refs/heads/master: b5bb61da2efe7519eedd6a8f3830ab33ab774b83
15 changes: 10 additions & 5 deletions trunk/net/sunrpc/rpc_pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -484,12 +484,12 @@ static const struct dentry_operations rpc_dentry_operations = {
.d_delete = rpc_delete_dentry,
};

static int
rpc_lookup_parent(char *path, struct nameidata *nd)
static int __rpc_lookup_path(const char *pathname, unsigned flags,
struct nameidata *nd)
{
struct vfsmount *mnt;

if (path[0] == '\0')
if (pathname[0] == '\0')
return -ENOENT;

mnt = rpc_get_mount();
Expand All @@ -499,15 +499,20 @@ rpc_lookup_parent(char *path, struct nameidata *nd)
return PTR_ERR(mnt);
}

if (vfs_path_lookup(mnt->mnt_root, mnt, path, LOOKUP_PARENT, nd)) {
if (vfs_path_lookup(mnt->mnt_root, mnt, pathname, flags, nd)) {
printk(KERN_WARNING "%s: %s failed to find path %s\n",
__FILE__, __func__, path);
__FILE__, __func__, pathname);
rpc_put_mount();
return -ENOENT;
}
return 0;
}

static int rpc_lookup_parent(const char *pathname, struct nameidata *nd)
{
return __rpc_lookup_path(pathname, LOOKUP_PARENT, nd);
}

static void
rpc_release_path(struct nameidata *nd)
{
Expand Down

0 comments on commit 6869fcd

Please sign in to comment.