blk-cgroup: move struct blkcg to block/blk-cgroup.h
authorChristoph Hellwig <hch@lst.de>
Wed, 20 Apr 2022 04:27:15 +0000 (06:27 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 2 May 2022 20:06:20 +0000 (14:06 -0600)
commitdec223c92a4688f6c9642d640cfe15a99d289dd4
treeee13aaf118cd8a274d477a144fb9aed2ed33a8df
parent397c9f46ee4d99024c64954b007c1b5762d01cb4
blk-cgroup: move struct blkcg to block/blk-cgroup.h

There is no real need to expose the blkcg structure to the whole kernel.
Move it to the private header an expose a helper to let the writeback
code access the cgwb_list member.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20220420042723.1010598-8-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c
block/blk-cgroup.h
include/linux/backing-dev.h
include/linux/blk-cgroup.h
mm/backing-dev.c