From: Miklos Szeredi Date: Fri, 11 May 2007 05:22:51 +0000 (-0700) Subject: consolidate generic_writepages and mpage_writepages X-Git-Tag: v2.6.22-rc1~71 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ea971801625184a91a6d80ea85e53875caa0bf5;p=pandora-kernel.git 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 Acked-by: Christoph Hellwig Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed