include buffer_head.h in actual users instead of fs.h (1/10)

include buffer_head.h in actual users instead of fs.h (1/10)

Post by Christoph Hellwi » Fri, 24 May 2002 21:30:18



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

  * 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 {

 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

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. include buffer_head.h in actual users instead of fs.h (10/10)

No more need to include buffer_head.h in fs.h.  Finally.

--- 1.121/include/linux/fs.h    Wed May 22 20:57:10 2002

        return res;
 }

-#include <linux/buffer_head.h>
-
 #endif /* __KERNEL__ */
-
 #endif /* _LINUX_FS_H */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Sendmail/Qmail/Other?

3. include buffer_head.h in actual users instead of fs.h (9/10)

4. log statistics not limited by memory?

5. include buffer_head.h in actual users instead of fs.h (5/10)

6. dual heads

7. include buffer_head.h in actual users instead of fs.h (4/10)

8. TLAN message after moving Linux 6.1 box to new network/address

9. include buffer_head.h in actual users instead of fs.h (6/10)

10. include buffer_head.h in actual users instead of fs.h (3/10)

11. include buffer_head.h in actual users instead of fs.h (7/10)

12. include buffer_head.h in actual users instead of fs.h (8/10)

13. include buffer_head.h in actual users instead of fs.h (2/10)