Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61589
b: refs/heads/master
c: 16b6287
h: refs/heads/master
i:
  61587: 6c94a31
v: v3
  • Loading branch information
Josef 'Jeff' Sipek authored and Linus Torvalds committed Jul 19, 2007
1 parent 1c11a5e commit 7a81b01
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 4ac4efc1f5575a268417f80ef4059aee383f8331
refs/heads/master: 16b6287a5286e872abece4f42a6eb5899157a836
16 changes: 6 additions & 10 deletions trunk/fs/nfsctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,15 @@
static struct file *do_open(char *name, int flags)
{
struct nameidata nd;
struct vfsmount *mnt;
int error;

nd.mnt = do_kern_mount("nfsd", 0, "nfsd", NULL);
mnt = do_kern_mount("nfsd", 0, "nfsd", NULL);
if (IS_ERR(mnt))
return (struct file *)mnt;

if (IS_ERR(nd.mnt))
return (struct file *)nd.mnt;

nd.dentry = dget(nd.mnt->mnt_root);
nd.last_type = LAST_ROOT;
nd.flags = 0;
nd.depth = 0;

error = path_walk(name, &nd);
error = vfs_path_lookup(mnt->mnt_root, mnt, name, 0, &nd);
mntput(mnt); /* drop do_kern_mount reference */
if (error)
return ERR_PTR(error);

Expand Down

0 comments on commit 7a81b01

Please sign in to comment.