diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-06-23 18:35:50 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-20 07:43:49 +0200 |
commit | 554a8b9f54cd7ca2b89f5dc227df08be082fae0d (patch) | |
tree | d8188a1503e744fa64dbabe6e585065e5234683b /fs/namei.c | |
parent | fix mknod() on nfs4 (hopefully) (diff) | |
download | linux-554a8b9f54cd7ca2b89f5dc227df08be082fae0d.tar.xz linux-554a8b9f54cd7ca2b89f5dc227df08be082fae0d.zip |
Don't pass nameidata when calling vfs_create() from mknod()
All instances can cope with that now (and ceph one actually
starts working properly).
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to '')
-rw-r--r-- | fs/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c index 42ccb97cc260..94fd0fa2d647 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -2411,7 +2411,7 @@ SYSCALL_DEFINE4(mknodat, int, dfd, const char __user *, filename, int, mode, goto out_drop_write; switch (mode & S_IFMT) { case 0: case S_IFREG: - error = vfs_create(nd.path.dentry->d_inode,dentry,mode,&nd); + error = vfs_create(nd.path.dentry->d_inode,dentry,mode,NULL); break; case S_IFCHR: case S_IFBLK: error = vfs_mknod(nd.path.dentry->d_inode,dentry,mode, |