diff options
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-cgroup.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c index 07371cfdfae6..bcaf16ee6ad1 100644 --- a/block/blk-cgroup.c +++ b/block/blk-cgroup.c | |||
@@ -30,10 +30,8 @@ EXPORT_SYMBOL_GPL(blkio_root_cgroup); | |||
30 | 30 | ||
31 | static struct cgroup_subsys_state *blkiocg_create(struct cgroup_subsys *, | 31 | static struct cgroup_subsys_state *blkiocg_create(struct cgroup_subsys *, |
32 | struct cgroup *); | 32 | struct cgroup *); |
33 | static int blkiocg_can_attach(struct cgroup_subsys *, struct cgroup *, | 33 | static int blkiocg_can_attach_task(struct cgroup *, struct task_struct *); |
34 | struct task_struct *, bool); | 34 | static void blkiocg_attach_task(struct cgroup *, struct task_struct *); |
35 | static void blkiocg_attach(struct cgroup_subsys *, struct cgroup *, | ||
36 | struct cgroup *, struct task_struct *, bool); | ||
37 | static void blkiocg_destroy(struct cgroup_subsys *, struct cgroup *); | 35 | static void blkiocg_destroy(struct cgroup_subsys *, struct cgroup *); |
38 | static int blkiocg_populate(struct cgroup_subsys *, struct cgroup *); | 36 | static int blkiocg_populate(struct cgroup_subsys *, struct cgroup *); |
39 | 37 | ||
@@ -46,8 +44,8 @@ static int blkiocg_populate(struct cgroup_subsys *, struct cgroup *); | |||
46 | struct cgroup_subsys blkio_subsys = { | 44 | struct cgroup_subsys blkio_subsys = { |
47 | .name = "blkio", | 45 | .name = "blkio", |
48 | .create = blkiocg_create, | 46 | .create = blkiocg_create, |
49 | .can_attach = blkiocg_can_attach, | 47 | .can_attach_task = blkiocg_can_attach_task, |
50 | .attach = blkiocg_attach, | 48 | .attach_task = blkiocg_attach_task, |
51 | .destroy = blkiocg_destroy, | 49 | .destroy = blkiocg_destroy, |
52 | .populate = blkiocg_populate, | 50 | .populate = blkiocg_populate, |
53 | #ifdef CONFIG_BLK_CGROUP | 51 | #ifdef CONFIG_BLK_CGROUP |
@@ -1616,9 +1614,7 @@ done: | |||
1616 | * of the main cic data structures. For now we allow a task to change | 1614 | * of the main cic data structures. For now we allow a task to change |
1617 | * its cgroup only if it's the only owner of its ioc. | 1615 | * its cgroup only if it's the only owner of its ioc. |
1618 | */ | 1616 | */ |
1619 | static int blkiocg_can_attach(struct cgroup_subsys *subsys, | 1617 | static int blkiocg_can_attach_task(struct cgroup *cgrp, struct task_struct *tsk) |
1620 | struct cgroup *cgroup, struct task_struct *tsk, | ||
1621 | bool threadgroup) | ||
1622 | { | 1618 | { |
1623 | struct io_context *ioc; | 1619 | struct io_context *ioc; |
1624 | int ret = 0; | 1620 | int ret = 0; |
@@ -1633,9 +1629,7 @@ static int blkiocg_can_attach(struct cgroup_subsys *subsys, | |||
1633 | return ret; | 1629 | return ret; |
1634 | } | 1630 | } |
1635 | 1631 | ||
1636 | static void blkiocg_attach(struct cgroup_subsys *subsys, struct cgroup *cgroup, | 1632 | static void blkiocg_attach_task(struct cgroup *cgrp, struct task_struct *tsk) |
1637 | struct cgroup *prev, struct task_struct *tsk, | ||
1638 | bool threadgroup) | ||
1639 | { | 1633 | { |
1640 | struct io_context *ioc; | 1634 | struct io_context *ioc; |
1641 | 1635 | ||