aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2021-11-30 21:33:55 +0100
committerIngo Molnar <mingo@kernel.org>2022-03-15 12:57:39 +0100
commit79c619180e588f4b8ecff9b2259d4f330a3bb0d5 (patch)
tree6a542b07cffdd74e945bcc1c867bfefe942b7dd2
parentb85628b17ae74a08ce044281cfc2a3eaeef0a60e (diff)
downloadtip-79c619180e588f4b8ecff9b2259d4f330a3bb0d5.tar.gz
headers/deps: buffer_head: Optimize <linux/buffer_head.h> dependencies, remove <linux/pagemap.h> inclusion
-------------------------------------------------------------------- | Combined, preprocessed C code size of header, without line markers, | with comments stripped: ------------------------- before: | #include <linux/buffer_head.h> | LOC: 17,735 | headers: 370 after: | #include <linux/buffer_head.h> | LOC: 7,388 | headers: 233 Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r--include/linux/buffer_head.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/buffer_head.h b/include/linux/buffer_head.h
index 36f33685c8c00a..94a4f6b46f27bc 100644
--- a/include/linux/buffer_head.h
+++ b/include/linux/buffer_head.h
@@ -8,12 +8,16 @@
#ifndef _LINUX_BUFFER_HEAD_H
#define _LINUX_BUFFER_HEAD_H
+#include <linux/page-flags.h>
#include <linux/types.h>
#include <linux/fs.h>
#include <linux/linkage.h>
-#include <linux/pagemap.h>
#include <linux/wait.h>
-#include <linux/atomic.h>
+#include <linux/bitops.h>
+#include <linux/fs_types_sb.h>
+#include <linux/mm_types.h>
+#include <linux/atomic_api.h>
+#include <linux/kernel.h>
#ifdef CONFIG_BLOCK