diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-08 12:19:57 -0800 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-08 12:19:57 -0800 | 
| commit | 972b2c719990f91eb3b2310d44ef8a2d38955a14 (patch) | |
| tree | b25a250ec5bec4b7b6355d214642d8b57c5cab32 /kernel/cgroup.c | |
| parent | 02550d61f49266930e674286379d3601006b2893 (diff) | |
| parent | c3aa077648e147783a7a53b409578234647db853 (diff) | |
| download | olio-linux-3.10-972b2c719990f91eb3b2310d44ef8a2d38955a14.tar.xz olio-linux-3.10-972b2c719990f91eb3b2310d44ef8a2d38955a14.zip  | |
Merge branch 'for-linus2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
* 'for-linus2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (165 commits)
  reiserfs: Properly display mount options in /proc/mounts
  vfs: prevent remount read-only if pending removes
  vfs: count unlinked inodes
  vfs: protect remounting superblock read-only
  vfs: keep list of mounts for each superblock
  vfs: switch ->show_options() to struct dentry *
  vfs: switch ->show_path() to struct dentry *
  vfs: switch ->show_devname() to struct dentry *
  vfs: switch ->show_stats to struct dentry *
  switch security_path_chmod() to struct path *
  vfs: prefer ->dentry->d_sb to ->mnt->mnt_sb
  vfs: trim includes a bit
  switch mnt_namespace ->root to struct mount
  vfs: take /proc/*/mounts and friends to fs/proc_namespace.c
  vfs: opencode mntget() mnt_set_mountpoint()
  vfs: spread struct mount - remaining argument of next_mnt()
  vfs: move fsnotify junk to struct mount
  vfs: move mnt_devname
  vfs: move mnt_list to struct mount
  vfs: switch pnode.h macros to struct mount *
  ...
Diffstat (limited to 'kernel/cgroup.c')
| -rw-r--r-- | kernel/cgroup.c | 22 | 
1 files changed, 11 insertions, 11 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index a184470cf9b..7cab65f83f1 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -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); @@ -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); @@ -1038,9 +1038,9 @@ static int rebind_subsystems(struct cgroupfs_root *root,  	return 0;  } -static int cgroup_show_options(struct seq_file *seq, struct vfsmount *vfs) +static int cgroup_show_options(struct seq_file *seq, struct dentry *dentry)  { -	struct cgroupfs_root *root = vfs->mnt_sb->s_fs_info; +	struct cgroupfs_root *root = dentry->d_sb->s_fs_info;  	struct cgroup_subsys *ss;  	mutex_lock(&cgroup_mutex); @@ -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; @@ -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; @@ -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; @@ -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)) { @@ -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; @@ -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;  |