aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-06-23 12:35:50 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2011-07-20 01:43:49 -0400
commit554a8b9f54cd7ca2b89f5dc227df08be082fae0d (patch)
treed8188a1503e744fa64dbabe6e585065e5234683b /fs
parentf7c85868fcacc331dd3454a4f08f006d7942521f (diff)
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 'fs')
-rw-r--r--fs/namei.c2
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,
2411 goto out_drop_write; 2411 goto out_drop_write;
2412 switch (mode & S_IFMT) { 2412 switch (mode & S_IFMT) {
2413 case 0: case S_IFREG: 2413 case 0: case S_IFREG:
2414 error = vfs_create(nd.path.dentry->d_inode,dentry,mode,&nd); 2414 error = vfs_create(nd.path.dentry->d_inode,dentry,mode,NULL);
2415 break; 2415 break;
2416 case S_IFCHR: case S_IFBLK: 2416 case S_IFCHR: case S_IFBLK:
2417 error = vfs_mknod(nd.path.dentry->d_inode,dentry,mode, 2417 error = vfs_mknod(nd.path.dentry->d_inode,dentry,mode,