]> git.baikalelectronics.ru Git - kernel.git/commit
consolidate generic_writepages and mpage_writepages
authorMiklos Szeredi <mszeredi@suse.cz>
Fri, 11 May 2007 05:22:51 +0000 (22:22 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 11 May 2007 15:29:35 +0000 (08:29 -0700)
commit8b5420c0fc7641f2cc0b0b63fe339de55eee3c38
tree6f4144b7ba809fccfe6d75314df8c348596c9a01
parent5040775f7c2a68e023c5b8347c9e3316e029313b
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>
fs/mpage.c
include/linux/mpage.h
include/linux/writeback.h
mm/page-writeback.c