Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339317
b: refs/heads/master
c: bcf6de1
h: refs/heads/master
i:
  339315: 1b6423e
v: v3
  • Loading branch information
Tejun Heo committed Nov 5, 2012
1 parent 0654ca4 commit 1b9fa9d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9d093cb10eb482adfba6ddc71a0969b78823ee8b
refs/heads/master: bcf6de1b9129531215d26dd9af8331e84973bc52
3 changes: 1 addition & 2 deletions trunk/block/blk-cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ struct cftype blkcg_files[] = {
*
* This is the blkcg counterpart of ioc_release_fn().
*/
static int blkcg_pre_destroy(struct cgroup *cgroup)
static void blkcg_pre_destroy(struct cgroup *cgroup)
{
struct blkcg *blkcg = cgroup_to_blkcg(cgroup);

Expand All @@ -622,7 +622,6 @@ static int blkcg_pre_destroy(struct cgroup *cgroup)
}

spin_unlock_irq(&blkcg->lock);
return 0;
}

static void blkcg_destroy(struct cgroup *cgroup)
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/cgroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ int cgroup_taskset_size(struct cgroup_taskset *tset);

struct cgroup_subsys {
struct cgroup_subsys_state *(*create)(struct cgroup *cgrp);
int (*pre_destroy)(struct cgroup *cgrp);
void (*pre_destroy)(struct cgroup *cgrp);
void (*destroy)(struct cgroup *cgrp);
int (*can_attach)(struct cgroup *cgrp, struct cgroup_taskset *tset);
void (*cancel_attach)(struct cgroup *cgrp, struct cgroup_taskset *tset);
Expand Down
2 changes: 1 addition & 1 deletion trunk/kernel/cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -4054,7 +4054,7 @@ static int cgroup_rmdir(struct inode *unused_dir, struct dentry *dentry)
mutex_unlock(&cgroup_mutex);
for_each_subsys(cgrp->root, ss)
if (ss->pre_destroy)
WARN_ON_ONCE(ss->pre_destroy(cgrp));
ss->pre_destroy(cgrp);
mutex_lock(&cgroup_mutex);

/*
Expand Down
4 changes: 1 addition & 3 deletions trunk/mm/hugetlb_cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ static void hugetlb_cgroup_move_parent(int idx, struct cgroup *cgroup,
* Force the hugetlb cgroup to empty the hugetlb resources by moving them to
* the parent cgroup.
*/
static int hugetlb_cgroup_pre_destroy(struct cgroup *cgroup)
static void hugetlb_cgroup_pre_destroy(struct cgroup *cgroup)
{
struct hstate *h;
struct page *page;
Expand All @@ -172,8 +172,6 @@ static int hugetlb_cgroup_pre_destroy(struct cgroup *cgroup)
}
cond_resched();
} while (hugetlb_cgroup_have_usage(cgroup));

return 0;
}

int hugetlb_cgroup_charge_cgroup(int idx, unsigned long nr_pages,
Expand Down
3 changes: 1 addition & 2 deletions trunk/mm/memcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -5002,12 +5002,11 @@ mem_cgroup_create(struct cgroup *cont)
return ERR_PTR(error);
}

static int mem_cgroup_pre_destroy(struct cgroup *cont)
static void mem_cgroup_pre_destroy(struct cgroup *cont)
{
struct mem_cgroup *memcg = mem_cgroup_from_cont(cont);

mem_cgroup_reparent_charges(memcg);
return 0;
}

static void mem_cgroup_destroy(struct cgroup *cont)
Expand Down

0 comments on commit 1b9fa9d

Please sign in to comment.