Commit 465c17d3 authored by Christoph Hellwig's avatar Christoph Hellwig

[PATCH] include buffer_head.h in actual users instead of fs.h (6/10)

Make the 7 file that need it in mm/ include buffer_head.h directly.
Once again most files shouln't need it and want fixing.
parent c018e6fe
......@@ -20,6 +20,16 @@
#include <linux/iobuf.h>
#include <linux/hash.h>
#include <linux/writeback.h>
/*
* This is needed for the following functions:
* - try_to_release_page
* - block_flushpage
* - page_has_buffers
* - generic_osync_inode
*
* FIXME: remove all knowledge of the buffer layer from this file
*/
#include <linux/buffer_head.h>
#include <asm/uaccess.h>
#include <asm/mman.h>
......
......@@ -12,6 +12,7 @@
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/mempool.h>
#include <linux/buffer_head.h> /* for wakeup_bdflush() */
static void add_element(mempool_t *pool, void *element)
{
......
......@@ -478,7 +478,10 @@ EXPORT_SYMBOL(write_one_page);
*
* For now, we treat swapper_space specially. It doesn't use the normal
* block a_ops.
*
* FIXME: this should move over to fs/buffer.c - buffer_heads have no business in mm/
*/
#include <linux/buffer_head.h>
int __set_page_dirty_buffers(struct page *page)
{
struct address_space * const mapping = page->mapping;
......
......@@ -15,6 +15,7 @@
#include <linux/pagemap.h>
#include <linux/swap.h>
#include <linux/swapctl.h>
#include <linux/buffer_head.h> /* for brw_page() */
#include <asm/pgtable.h>
......
......@@ -14,6 +14,7 @@
#include <linux/init.h>
#include <linux/pagemap.h>
#include <linux/smp_lock.h>
#include <linux/buffer_head.h> /* for block_sync_page()/block_flushpage() */
#include <asm/pgtable.h>
......
......@@ -16,7 +16,7 @@
#include <linux/namei.h>
#include <linux/shm.h>
#include <linux/blkdev.h>
#include <linux/compiler.h>
#include <linux/buffer_head.h> /* for block_flushpage() */
#include <asm/pgtable.h>
......
......@@ -22,8 +22,8 @@
#include <linux/highmem.h>
#include <linux/file.h>
#include <linux/writeback.h>
#include <linux/compiler.h>
#include <linux/suspend.h>
#include <linux/buffer_head.h> /* for try_to_release_page() */
#include <asm/pgalloc.h>
#include <asm/tlbflush.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment