[lkml]   [2002]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] include buffer_head.h in actual users instead of fs.h (1/10)
Now that fs.h grow due to the lock.h removal let's reduce it's overhead
again: Instead of penalizing ever user of fs.h with the overhead of the
buffer head interface let it's users include it directly.

This also shows nicely which parts of the core kernel still depend on the
buffer head interface, and allows that to be cleaned up properly.

This is the first of ten patches and adds the includes needed by
buffer_head.h to it and fixes it's inclusion guard.

--- 1.9/include/linux/buffer_head.h Sun May 19 13:49:49 2002
+++ edited/include/linux/buffer_head.h Thu May 23 14:18:31 2002
@@ -4,8 +4,13 @@
* Everything to do with buffer_heads.

+#include <linux/types.h>
+#include <linux/fs.h>
+#include <asm/atomic.h>

enum bh_state_bits {
BH_Uptodate, /* Contains valid data */
@@ -297,4 +300,4 @@
void __buffer_error(char *file, int line);
#define buffer_error() __buffer_error(__FILE__, __LINE__)

-#endif /* BUFFER_FLAGS_H */
+#endif /* _LINUX_BUFFER_HEAD_H */
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at
 \ /
  Last update: 2005-03-22 13:26    [W:0.020 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site