aboutsummaryrefslogtreecommitdiff
path: root/fs/nfsctl.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2008-10-24 09:58:10 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2008-12-31 18:07:41 -0500
commit3fb64190aa3c23c10e6e9fd0124ac030115c99bf (patch)
tree6b7b5452d2abbe7964803d8a95c03e5612c8e607 /fs/nfsctl.c
parentb4091d5f6fde28ab762e1094a1a26d81f3badfa5 (diff)
pass a struct path * to may_open
No need for the nameidata in may_open - a struct path is enough. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/nfsctl.c')
-rw-r--r--fs/nfsctl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/nfsctl.c b/fs/nfsctl.c
index b1acbd6ab6f..b27451909df 100644
--- a/fs/nfsctl.c
+++ b/fs/nfsctl.c
@@ -38,9 +38,10 @@ static struct file *do_open(char *name, int flags)
return ERR_PTR(error);
if (flags == O_RDWR)
- error = may_open(&nd,MAY_READ|MAY_WRITE,FMODE_READ|FMODE_WRITE);
+ error = may_open(&nd.path, MAY_READ|MAY_WRITE,
+ FMODE_READ|FMODE_WRITE);
else
- error = may_open(&nd, MAY_WRITE, FMODE_WRITE);
+ error = may_open(&nd.path, MAY_WRITE, FMODE_WRITE);
if (!error)
return dentry_open(nd.path.dentry, nd.path.mnt, flags,