diff options
author | Chengming Zhou <zhouchengming@bytedance.com> | 2023-04-06 16:50:50 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-04-07 00:17:32 +0200 |
commit | 650e2cb50f3fc45d0585ed8609db9519f6c9bcd8 (patch) | |
tree | 3c7b7879974126f6f2b43a28a0df1c7c20f0de62 /block/blk-cgroup.c | |
parent | blk-cgroup: delete cpd_bind_fn of blkcg_policy (diff) | |
download | linux-650e2cb50f3fc45d0585ed8609db9519f6c9bcd8.tar.xz linux-650e2cb50f3fc45d0585ed8609db9519f6c9bcd8.zip |
blk-cgroup: delete cpd_init_fn of blkcg_policy
blkcg_policy cpd_init_fn() is used to just initialize some default
fields of policy data, which is enough to do in cpd_alloc_fn().
This patch delete the only user bfq_cpd_init(), and remove cpd_init_fn
from blkcg_policy.
Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20230406145050.49914-4-zhouchengming@bytedance.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-cgroup.c')
-rw-r--r-- | block/blk-cgroup.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c index 68b797b3f114..18331cb92914 100644 --- a/block/blk-cgroup.c +++ b/block/blk-cgroup.c @@ -1249,8 +1249,6 @@ blkcg_css_alloc(struct cgroup_subsys_state *parent_css) blkcg->cpd[i] = cpd; cpd->blkcg = blkcg; cpd->plid = i; - if (pol->cpd_init_fn) - pol->cpd_init_fn(cpd); } spin_lock_init(&blkcg->lock); @@ -1605,8 +1603,6 @@ int blkcg_policy_register(struct blkcg_policy *pol) blkcg->cpd[pol->plid] = cpd; cpd->blkcg = blkcg; cpd->plid = pol->plid; - if (pol->cpd_init_fn) - pol->cpd_init_fn(cpd); } } |