From: Christoph Hellwig Date: Wed, 23 Jun 2010 23:46:01 +0000 (+1000) Subject: xfs: simplify xfs_vm_writepage X-Git-Tag: v2.6.36-rc1~589^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20cb52ebd1b5ca6fa8a5d9b6b1392292f5ca8a45;p=pandora-kernel.git xfs: simplify xfs_vm_writepage The writepage implementation in XFS still tries to deal with dirty but unmapped buffers which used to caused by writes through shared mmaps. Since the introduction of ->page_mkwrite these can't happen anymore, so remove the code dealing with them. Note that the all_bh variable which causes us to start I/O on all buffers on the pages was controlled by the count of unmapped buffers, which also included those not actually dirty. It's now unconditionally initialized to 0 but set to 1 for the case of small file size extensions. It probably can be removed entirely, but that's left for another patch. Signed-off-by: Christoph Hellwig Reviewed-by: Dave Chinner --- Reading git-diff-tree failed