]> git.baikalelectronics.ru Git - kernel.git/commitdiff
blk-cgroup: remove unneeded includes from <linux/blk-cgroup.h>
authorChristoph Hellwig <hch@lst.de>
Wed, 20 Apr 2022 04:27:19 +0000 (06:27 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 2 May 2022 20:06:20 +0000 (14:06 -0600)
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: Christoph Hellwig <hch@lst.de>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20220420042723.1010598-12-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.h
include/linux/blk-cgroup.h
mm/backing-dev.c
mm/readahead.c
mm/swapfile.c

index a948f4eb0bff88bb300477d219088a23029f2dfe..62ed8ed50b6e3e5615a22e6277d71c315a9b1db6 100644 (file)
@@ -15,6 +15,8 @@
  */
 
 #include <linux/blk-cgroup.h>
+#include <linux/cgroup.h>
+#include <linux/kthread.h>
 #include <linux/blk-mq.h>
 
 struct blkcg_gq;
index abbfa97d6d46fc1074a3190d88cad4c4b8399134..9f40dbc65f82c0e8ad44eaefb7b25a27accc5bf3 100644 (file)
  *                   Nauman Rafique <nauman@google.com>
  */
 
-#include <linux/cgroup.h>
-#include <linux/percpu.h>
-#include <linux/percpu_counter.h>
-#include <linux/u64_stats_sync.h>
-#include <linux/seq_file.h>
-#include <linux/radix-tree.h>
-#include <linux/blkdev.h>
-#include <linux/atomic.h>
-#include <linux/kthread.h>
-#include <linux/fs.h>
+#include <linux/types.h>
+
+struct bio;
+struct cgroup_subsys_state;
+struct request_queue;
 
 #define FC_APPID_LEN              129
 
index 98f8f62e52ca56dd006779c91104b14fe747a0a2..ff60bd7d74e0729b81f80ecfad4e9296e1e08079 100644 (file)
@@ -1,5 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 
+#include <linux/blkdev.h>
 #include <linux/wait.h>
 #include <linux/rbtree.h>
 #include <linux/kthread.h>
index 8e3775829513ee7caec5b45e0c51df8ea517e5f9..c93671a2bf0f72a92423c2e07c0a585d8319a20e 100644 (file)
  * ->readpage() which may be less efficient.
  */
 
+#include <linux/blkdev.h>
 #include <linux/kernel.h>
 #include <linux/dax.h>
 #include <linux/gfp.h>
index a2b31fea0c42e2e623992d4546f543de3538be79..981a6e85c88e773b9b1a11a27b5265b17819928e 100644 (file)
@@ -6,6 +6,7 @@
  *  Swap reorganised 29.12.95, Stephen Tweedie
  */
 
+#include <linux/blkdev.h>
 #include <linux/mm.h>
 #include <linux/sched/mm.h>
 #include <linux/sched/task.h>