projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31d813a
)
blk-zoned: Minimize #include directives
author
Bart Van Assche
<bvanassche@acm.org>
Tue, 17 Dec 2024 21:03:07 +0000
(13:03 -0800)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 23 Dec 2024 15:17:23 +0000
(08:17 -0700)
Only include those header files that are necessary.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link:
https://lore.kernel.org/r/20241217210310.645966-2-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-zoned.c
patch
|
blob
|
blame
|
history
diff --git
a/block/blk-zoned.c
b/block/blk-zoned.c
index 84da1eadff642ded541eb1bb1c3112a7fe445010..1575b887fa38dbacb09c3ad48223618f2b9b9415 100644
(file)
--- a/
block/blk-zoned.c
+++ b/
block/blk-zoned.c
@@
-11,12
+11,8
@@
*/
#include <linux/kernel.h>
-#include <linux/module.h>
#include <linux/blkdev.h>
#include <linux/blk-mq.h>
-#include <linux/mm.h>
-#include <linux/vmalloc.h>
-#include <linux/sched/mm.h>
#include <linux/spinlock.h>
#include <linux/refcount.h>
#include <linux/mempool.h>