···319319 * If not 0, file mode is set to this value, otherwise it will320320 * be figured out automatically321321 */322322- mode_t mode;322322+ umode_t mode;323323324324 /*325325 * If non-zero, defines the maximum length of string that can
+7-7
kernel/cgroup.c
···775775static int alloc_css_id(struct cgroup_subsys *ss,776776 struct cgroup *parent, struct cgroup *child);777777778778-static struct inode *cgroup_new_inode(mode_t mode, struct super_block *sb)778778+static struct inode *cgroup_new_inode(umode_t mode, struct super_block *sb)779779{780780 struct inode *inode = new_inode(sb);781781···25852585 return __d_cft(file->f_dentry);25862586}2587258725882588-static int cgroup_create_file(struct dentry *dentry, mode_t mode,25882588+static int cgroup_create_file(struct dentry *dentry, umode_t mode,25892589 struct super_block *sb)25902590{25912591 struct inode *inode;···26262626 * @mode: mode to set on new directory.26272627 */26282628static int cgroup_create_dir(struct cgroup *cgrp, struct dentry *dentry,26292629- mode_t mode)26292629+ umode_t mode)26302630{26312631 struct dentry *parent;26322632 int error = 0;···26532653 * returns S_IRUGO if it has only a read handler26542654 * returns S_IWUSR if it has only a write hander26552655 */26562656-static mode_t cgroup_file_mode(const struct cftype *cft)26562656+static umode_t cgroup_file_mode(const struct cftype *cft)26572657{26582658- mode_t mode = 0;26582658+ umode_t mode = 0;2659265926602660 if (cft->mode)26612661 return cft->mode;···26782678 struct dentry *dir = cgrp->dentry;26792679 struct dentry *dentry;26802680 int error;26812681- mode_t mode;26812681+ umode_t mode;2682268226832683 char name[MAX_CGROUP_TYPE_NAMELEN + MAX_CFTYPE_NAME + 2] = { 0 };26842684 if (subsys && !test_bit(ROOT_NOPREFIX, &cgrp->root->flags)) {···37523752 * Must be called with the mutex on the parent inode held37533753 */37543754static long cgroup_create(struct cgroup *parent, struct dentry *dentry,37553755- mode_t mode)37553755+ umode_t mode)37563756{37573757 struct cgroup *cgrp;37583758 struct cgroupfs_root *root = parent->root;