mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 08:03:01 +09:00
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>
This commit is contained in:
committed by
Linus Torvalds
parent
e10cc1df1d
commit
0ea9718016
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user