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>
This commit is contained in:
@@ -760,7 +760,7 @@ EXPORT_SYMBOL_GPL(cgroup_unlock);
|
||||
* -> cgroup_mkdir.
|
||||
*/
|
||||
|
||||
static int cgroup_mkdir(struct inode *dir, struct dentry *dentry, int mode);
|
||||
static int cgroup_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode);
|
||||
static struct dentry *cgroup_lookup(struct inode *, struct dentry *, struct nameidata *);
|
||||
static int cgroup_rmdir(struct inode *unused_dir, struct dentry *dentry);
|
||||
static int cgroup_populate_dir(struct cgroup *cgrp);
|
||||
@@ -3846,7 +3846,7 @@ static long cgroup_create(struct cgroup *parent, struct dentry *dentry,
|
||||
return err;
|
||||
}
|
||||
|
||||
static int cgroup_mkdir(struct inode *dir, struct dentry *dentry, int mode)
|
||||
static int cgroup_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
|
||||
{
|
||||
struct cgroup *c_parent = dentry->d_parent->d_fsdata;
|
||||
|
||||
|
Reference in New Issue
Block a user