Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260905
b: refs/heads/master
c: 2ce9738
h: refs/heads/master
i:
  260903: 13164b8
v: v3
  • Loading branch information
eparis@redhat authored and James Morris committed Jun 9, 2011
1 parent 8d2bc7e commit 8376b62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f55cf3c76a3b2e4bdcfea4f95c9d527663b41ece
refs/heads/master: 2ce9738bac1b386f46e8478fd2c263460e7c2b09
5 changes: 5 additions & 0 deletions trunk/kernel/cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@
*/

#include <linux/cgroup.h>
#include <linux/cred.h>
#include <linux/ctype.h>
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/init_task.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/mm.h>
Expand Down Expand Up @@ -1514,6 +1516,7 @@ static struct dentry *cgroup_mount(struct file_system_type *fs_type,
struct cgroup *root_cgrp = &root->top_cgroup;
struct inode *inode;
struct cgroupfs_root *existing_root;
const struct cred *cred;
int i;

BUG_ON(sb->s_root != NULL);
Expand Down Expand Up @@ -1593,7 +1596,9 @@ static struct dentry *cgroup_mount(struct file_system_type *fs_type,
BUG_ON(!list_empty(&root_cgrp->children));
BUG_ON(root->number_of_cgroups != 1);

cred = override_creds(&init_cred);
cgroup_populate_dir(root_cgrp);
revert_creds(cred);
mutex_unlock(&cgroup_mutex);
mutex_unlock(&inode->i_mutex);
} else {
Expand Down

0 comments on commit 8376b62

Please sign in to comment.