path: root/block/blk-settings.c
diff options
authorMatthew Wilcox (Oracle) <>2021-05-06 18:02:27 -0700
committerLinus Torvalds <>2021-05-06 19:24:11 -0700
commit4ee60ec156d91c315d1f62dfc1bc5799dcc6b473 (patch)
treee4872718c04099fbd30bbebabb4302c8243337b4 /block/blk-settings.c
parent5b31a7dfa35098a8c331b47fe4869282597df89f (diff)
include: remove pagemap.h from blkdev.h
My UEK-derived config has 1030 files depending on pagemap.h before this change. Afterwards, just 326 files need to be rebuilt when I touch pagemap.h. I think blkdev.h is probably included too widely, but untangling that dependency is harder and this solves my problem. x86 allmodconfig builds, but there may be implicit include problems on other architectures. Link: Signed-off-by: Matthew Wilcox (Oracle) <> Acked-by: Dan Williams <> [nvdimm] Acked-by: Jens Axboe <> [block] Reviewed-by: Christoph Hellwig <> Acked-by: Coly Li <> [bcache] Acked-by: Martin K. Petersen <> [scsi] Reviewed-by: William Kucharski <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'block/blk-settings.c')
1 files changed, 1 insertions, 0 deletions
diff --git a/block/blk-settings.c b/block/blk-settings.c
index 9c009090c4b5..902c40d67120 100644
--- a/block/blk-settings.c
+++ b/block/blk-settings.c
@@ -7,6 +7,7 @@
#include <linux/init.h>
#include <linux/bio.h>
#include <linux/blkdev.h>
+#include <linux/pagemap.h>
#include <linux/gcd.h>
#include <linux/lcm.h>
#include <linux/jiffies.h>