aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namei.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-11-21 14:59:34 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2012-01-03 22:55:19 -0500
commita218d0fdc5f9004164ff151d274487f6799907d0 (patch)
tree24ea22ffb4aadb1fedff50c4a7fcb17af1981459 /fs/namei.c
parent04fc66e789a896e684bfdca30208e57eb832dd96 (diff)
switch open and mkdir syscalls to umode_t
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namei.c')
-rw-r--r--fs/namei.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/namei.c b/fs/namei.c
index e275dc36d7c5..afd5876cd072 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -2177,7 +2177,7 @@ static struct file *do_last(struct nameidata *nd, struct path *path,
2177 2177
2178 /* Negative dentry, just create the file */ 2178 /* Negative dentry, just create the file */
2179 if (!dentry->d_inode) { 2179 if (!dentry->d_inode) {
2180 int mode = op->mode; 2180 umode_t mode = op->mode;
2181 if (!IS_POSIXACL(dir->d_inode)) 2181 if (!IS_POSIXACL(dir->d_inode))
2182 mode &= ~current_umask(); 2182 mode &= ~current_umask();
2183 /* 2183 /*
@@ -2562,7 +2562,7 @@ int vfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
2562 return error; 2562 return error;
2563} 2563}
2564 2564
2565SYSCALL_DEFINE3(mkdirat, int, dfd, const char __user *, pathname, int, mode) 2565SYSCALL_DEFINE3(mkdirat, int, dfd, const char __user *, pathname, umode_t, mode)
2566{ 2566{
2567 struct dentry *dentry; 2567 struct dentry *dentry;
2568 struct path path; 2568 struct path path;
@@ -2590,7 +2590,7 @@ out_dput:
2590 return error; 2590 return error;
2591} 2591}
2592 2592
2593SYSCALL_DEFINE2(mkdir, const char __user *, pathname, int, mode) 2593SYSCALL_DEFINE2(mkdir, const char __user *, pathname, umode_t, mode)
2594{ 2594{
2595 return sys_mkdirat(AT_FDCWD, pathname, mode); 2595 return sys_mkdirat(AT_FDCWD, pathname, mode);
2596} 2596}