]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] include buffer_head.h in actual users instead of fs.h (1/10)
authorChristoph Hellwig <hch@infradead.org>
Thu, 23 May 2002 05:51:51 +0000 (22:51 -0700)
committerChristoph Hellwig <hch@infradead.org>
Thu, 23 May 2002 05:51:51 +0000 (22:51 -0700)
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.

include/linux/buffer_head.h

index 5560b6ee58780432bd628cf733bd2a4fee3dd56b..761196f34323ee39d08c5cddae21ed401244a4d1 100644 (file)
@@ -4,8 +4,13 @@
  * Everything to do with buffer_heads.
  */
 
-#ifndef BUFFER_FLAGS_H
-#define BUFFER_FLAGS_H
+#ifndef _LINUX_BUFFER_HEAD_H
+#define _LINUX_BUFFER_HEAD_H
+
+#include <linux/types.h>
+#include <linux/fs.h>
+#include <asm/atomic.h>
+
 
 enum bh_state_bits {
        BH_Uptodate,    /* Contains valid data */
@@ -297,4 +302,4 @@ static inline void lock_buffer(struct buffer_head * bh)
 void __buffer_error(char *file, int line);
 #define buffer_error() __buffer_error(__FILE__, __LINE__)
 
-#endif         /* BUFFER_FLAGS_H */
+#endif /* _LINUX_BUFFER_HEAD_H */