aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-07-26 01:41:39 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-01-03 22:54:53 -0500
commit18bb1db3e7607e4a997d50991a6f9fa5b0f8722c (patch)
tree4ee4e584bc9a67f3ec14ce159d2d7d4a27e68d4a /kernel
parent8208a22bb8bd3c52ef634b4ff194f14892ab1713 (diff)
switch vfs_mkdir() and ->mkdir() to umode_t
vfs_mkdir() gets int, but immediately drops everything that might not fit into umode_t and that's the only caller of ->mkdir()... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/cgroup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index a184470cf9b5..b37a0ea55114 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -760,7 +760,7 @@ EXPORT_SYMBOL_GPL(cgroup_unlock);
760 * -> cgroup_mkdir. 760 * -> cgroup_mkdir.
761 */ 761 */
762 762
763static int cgroup_mkdir(struct inode *dir, struct dentry *dentry, int mode); 763static int cgroup_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode);
764static struct dentry *cgroup_lookup(struct inode *, struct dentry *, struct nameidata *); 764static struct dentry *cgroup_lookup(struct inode *, struct dentry *, struct nameidata *);
765static int cgroup_rmdir(struct inode *unused_dir, struct dentry *dentry); 765static int cgroup_rmdir(struct inode *unused_dir, struct dentry *dentry);
766static int cgroup_populate_dir(struct cgroup *cgrp); 766static int cgroup_populate_dir(struct cgroup *cgrp);
@@ -3846,7 +3846,7 @@ static long cgroup_create(struct cgroup *parent, struct dentry *dentry,
3846 return err; 3846 return err;
3847} 3847}
3848 3848
3849static int cgroup_mkdir(struct inode *dir, struct dentry *dentry, int mode) 3849static int cgroup_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
3850{ 3850{
3851 struct cgroup *c_parent = dentry->d_parent->d_fsdata; 3851 struct cgroup *c_parent = dentry->d_parent->d_fsdata;
3852 3852