Commit c97ab271 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe

blk-cgroup: remove unneeded includes from <linux/blk-cgroup.h>

Remove all the includes that aren't actually needed from
<linux/blk-cgroup.h> and push them to the actual source files where
needed.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20220420042723.1010598-12-hch@lst.deSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 7f20ba7c
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
*/ */
#include <linux/blk-cgroup.h> #include <linux/blk-cgroup.h>
#include <linux/cgroup.h>
#include <linux/kthread.h>
#include <linux/blk-mq.h> #include <linux/blk-mq.h>
struct blkcg_gq; struct blkcg_gq;
......
...@@ -14,16 +14,11 @@ ...@@ -14,16 +14,11 @@
* Nauman Rafique <nauman@google.com> * Nauman Rafique <nauman@google.com>
*/ */
#include <linux/cgroup.h> #include <linux/types.h>
#include <linux/percpu.h>
#include <linux/percpu_counter.h> struct bio;
#include <linux/u64_stats_sync.h> struct cgroup_subsys_state;
#include <linux/seq_file.h> struct request_queue;
#include <linux/radix-tree.h>
#include <linux/blkdev.h>
#include <linux/atomic.h>
#include <linux/kthread.h>
#include <linux/fs.h>
#define FC_APPID_LEN 129 #define FC_APPID_LEN 129
......
// SPDX-License-Identifier: GPL-2.0-only // SPDX-License-Identifier: GPL-2.0-only
#include <linux/blkdev.h>
#include <linux/wait.h> #include <linux/wait.h>
#include <linux/rbtree.h> #include <linux/rbtree.h>
#include <linux/kthread.h> #include <linux/kthread.h>
......
...@@ -113,6 +113,7 @@ ...@@ -113,6 +113,7 @@
* ->readpage() which may be less efficient. * ->readpage() which may be less efficient.
*/ */
#include <linux/blkdev.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/dax.h> #include <linux/dax.h>
#include <linux/gfp.h> #include <linux/gfp.h>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
* Swap reorganised 29.12.95, Stephen Tweedie * Swap reorganised 29.12.95, Stephen Tweedie
*/ */
#include <linux/blkdev.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/sched/mm.h> #include <linux/sched/mm.h>
#include <linux/sched/task.h> #include <linux/sched/task.h>
......
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