Commit 025aecd8 authored by Jiufei Xue's avatar Jiufei Xue Committed by Jens Axboe

writeback: remove dead code in wb_blkcg/memcg_offline

Signed-off-by: default avatarJiufei Xue <jiufei.xue@linux.alibaba.com>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 723fbf56
...@@ -745,7 +745,6 @@ static void cgwb_bdi_unregister(struct backing_dev_info *bdi) ...@@ -745,7 +745,6 @@ static void cgwb_bdi_unregister(struct backing_dev_info *bdi)
*/ */
void wb_memcg_offline(struct mem_cgroup *memcg) void wb_memcg_offline(struct mem_cgroup *memcg)
{ {
LIST_HEAD(to_destroy);
struct list_head *memcg_cgwb_list = mem_cgroup_cgwb_list(memcg); struct list_head *memcg_cgwb_list = mem_cgroup_cgwb_list(memcg);
struct bdi_writeback *wb, *next; struct bdi_writeback *wb, *next;
...@@ -764,7 +763,6 @@ void wb_memcg_offline(struct mem_cgroup *memcg) ...@@ -764,7 +763,6 @@ void wb_memcg_offline(struct mem_cgroup *memcg)
*/ */
void wb_blkcg_offline(struct blkcg *blkcg) void wb_blkcg_offline(struct blkcg *blkcg)
{ {
LIST_HEAD(to_destroy);
struct bdi_writeback *wb, *next; struct bdi_writeback *wb, *next;
spin_lock_irq(&cgwb_lock); spin_lock_irq(&cgwb_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment