summaryrefslogtreecommitdiffstats
path: root/include/linux/mpage.h
diff options
context:
space:
mode:
authorMiklos Szeredi2007-05-11 07:22:51 +0200
committerLinus Torvalds2007-05-11 17:29:35 +0200
commit0ea971801625184a91a6d80ea85e53875caa0bf5 (patch)
tree6f4144b7ba809fccfe6d75314df8c348596c9a01 /include/linux/mpage.h
parenttty: add compat_ioctl (diff)
downloadkernel-qcow2-linux-0ea971801625184a91a6d80ea85e53875caa0bf5.tar.gz
kernel-qcow2-linux-0ea971801625184a91a6d80ea85e53875caa0bf5.tar.xz
kernel-qcow2-linux-0ea971801625184a91a6d80ea85e53875caa0bf5.zip
consolidate generic_writepages and mpage_writepages
Clean up massive code duplication between mpage_writepages() and generic_writepages(). The new generic function, write_cache_pages() takes a function pointer argument, which will be called for each page to be written. Maybe cifs_writepages() too can use this infrastructure, but I'm not touching that with a ten-foot pole. The upcoming page writeback support in fuse will also want this. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Acked-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/mpage.h')
-rw-r--r--include/linux/mpage.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/mpage.h b/include/linux/mpage.h
index cc5fb75af78a..068a0c9946af 100644
--- a/include/linux/mpage.h
+++ b/include/linux/mpage.h
@@ -12,7 +12,6 @@
#ifdef CONFIG_BLOCK
struct writeback_control;
-typedef int (writepage_t)(struct page *page, struct writeback_control *wbc);
int mpage_readpages(struct address_space *mapping, struct list_head *pages,
unsigned nr_pages, get_block_t get_block);