diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-26 01:41:39 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-03 22:54:53 -0500 |
commit | 18bb1db3e7607e4a997d50991a6f9fa5b0f8722c (patch) | |
tree | 4ee4e584bc9a67f3ec14ce159d2d7d4a27e68d4a /kernel | |
parent | 8208a22bb8bd3c52ef634b4ff194f14892ab1713 (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.c | 4 |
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 | ||
763 | static int cgroup_mkdir(struct inode *dir, struct dentry *dentry, int mode); | 763 | static int cgroup_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode); |
764 | static struct dentry *cgroup_lookup(struct inode *, struct dentry *, struct nameidata *); | 764 | static struct dentry *cgroup_lookup(struct inode *, struct dentry *, struct nameidata *); |
765 | static int cgroup_rmdir(struct inode *unused_dir, struct dentry *dentry); | 765 | static int cgroup_rmdir(struct inode *unused_dir, struct dentry *dentry); |
766 | static int cgroup_populate_dir(struct cgroup *cgrp); | 766 | static 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 | ||
3849 | static int cgroup_mkdir(struct inode *dir, struct dentry *dentry, int mode) | 3849 | static 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 | ||