Loading include/linux/cgroup.h +1 −1 Original line number Diff line number Diff line Loading @@ -319,7 +319,7 @@ struct cftype { * If not 0, file mode is set to this value, otherwise it will * be figured out automatically */ mode_t mode; umode_t mode; /* * If non-zero, defines the maximum length of string that can Loading kernel/cgroup.c +7 −7 Original line number Diff line number Diff line Loading @@ -775,7 +775,7 @@ static struct backing_dev_info cgroup_backing_dev_info = { static int alloc_css_id(struct cgroup_subsys *ss, struct cgroup *parent, struct cgroup *child); static struct inode *cgroup_new_inode(mode_t mode, struct super_block *sb) static struct inode *cgroup_new_inode(umode_t mode, struct super_block *sb) { struct inode *inode = new_inode(sb); Loading Loading @@ -2585,7 +2585,7 @@ static inline struct cftype *__file_cft(struct file *file) return __d_cft(file->f_dentry); } static int cgroup_create_file(struct dentry *dentry, mode_t mode, static int cgroup_create_file(struct dentry *dentry, umode_t mode, struct super_block *sb) { struct inode *inode; Loading Loading @@ -2626,7 +2626,7 @@ static int cgroup_create_file(struct dentry *dentry, mode_t mode, * @mode: mode to set on new directory. */ static int cgroup_create_dir(struct cgroup *cgrp, struct dentry *dentry, mode_t mode) umode_t mode) { struct dentry *parent; int error = 0; Loading @@ -2653,9 +2653,9 @@ static int cgroup_create_dir(struct cgroup *cgrp, struct dentry *dentry, * returns S_IRUGO if it has only a read handler * returns S_IWUSR if it has only a write hander */ static mode_t cgroup_file_mode(const struct cftype *cft) static umode_t cgroup_file_mode(const struct cftype *cft) { mode_t mode = 0; umode_t mode = 0; if (cft->mode) return cft->mode; Loading @@ -2678,7 +2678,7 @@ int cgroup_add_file(struct cgroup *cgrp, struct dentry *dir = cgrp->dentry; struct dentry *dentry; int error; mode_t mode; umode_t mode; char name[MAX_CGROUP_TYPE_NAMELEN + MAX_CFTYPE_NAME + 2] = { 0 }; if (subsys && !test_bit(ROOT_NOPREFIX, &cgrp->root->flags)) { Loading Loading @@ -3752,7 +3752,7 @@ static void cgroup_unlock_hierarchy(struct cgroupfs_root *root) * Must be called with the mutex on the parent inode held */ static long cgroup_create(struct cgroup *parent, struct dentry *dentry, mode_t mode) umode_t mode) { struct cgroup *cgrp; struct cgroupfs_root *root = parent->root; Loading Loading
include/linux/cgroup.h +1 −1 Original line number Diff line number Diff line Loading @@ -319,7 +319,7 @@ struct cftype { * If not 0, file mode is set to this value, otherwise it will * be figured out automatically */ mode_t mode; umode_t mode; /* * If non-zero, defines the maximum length of string that can Loading
kernel/cgroup.c +7 −7 Original line number Diff line number Diff line Loading @@ -775,7 +775,7 @@ static struct backing_dev_info cgroup_backing_dev_info = { static int alloc_css_id(struct cgroup_subsys *ss, struct cgroup *parent, struct cgroup *child); static struct inode *cgroup_new_inode(mode_t mode, struct super_block *sb) static struct inode *cgroup_new_inode(umode_t mode, struct super_block *sb) { struct inode *inode = new_inode(sb); Loading Loading @@ -2585,7 +2585,7 @@ static inline struct cftype *__file_cft(struct file *file) return __d_cft(file->f_dentry); } static int cgroup_create_file(struct dentry *dentry, mode_t mode, static int cgroup_create_file(struct dentry *dentry, umode_t mode, struct super_block *sb) { struct inode *inode; Loading Loading @@ -2626,7 +2626,7 @@ static int cgroup_create_file(struct dentry *dentry, mode_t mode, * @mode: mode to set on new directory. */ static int cgroup_create_dir(struct cgroup *cgrp, struct dentry *dentry, mode_t mode) umode_t mode) { struct dentry *parent; int error = 0; Loading @@ -2653,9 +2653,9 @@ static int cgroup_create_dir(struct cgroup *cgrp, struct dentry *dentry, * returns S_IRUGO if it has only a read handler * returns S_IWUSR if it has only a write hander */ static mode_t cgroup_file_mode(const struct cftype *cft) static umode_t cgroup_file_mode(const struct cftype *cft) { mode_t mode = 0; umode_t mode = 0; if (cft->mode) return cft->mode; Loading @@ -2678,7 +2678,7 @@ int cgroup_add_file(struct cgroup *cgrp, struct dentry *dir = cgrp->dentry; struct dentry *dentry; int error; mode_t mode; umode_t mode; char name[MAX_CGROUP_TYPE_NAMELEN + MAX_CFTYPE_NAME + 2] = { 0 }; if (subsys && !test_bit(ROOT_NOPREFIX, &cgrp->root->flags)) { Loading Loading @@ -3752,7 +3752,7 @@ static void cgroup_unlock_hierarchy(struct cgroupfs_root *root) * Must be called with the mutex on the parent inode held */ static long cgroup_create(struct cgroup *parent, struct dentry *dentry, mode_t mode) umode_t mode) { struct cgroup *cgrp; struct cgroupfs_root *root = parent->root; Loading