From: Richard Kennedy Date: Fri, 25 Dec 2009 20:46:07 +0000 (-0500) Subject: ext4: return correct wbc.nr_to_write in ext4_da_writepages X-Git-Tag: v2.6.33-rc3~34^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2faf2e19dd0e060eeb32442858ef495ac3083277;p=pandora-kernel.git ext4: return correct wbc.nr_to_write in ext4_da_writepages When ext4_da_writepages increases the nr_to_write in writeback_control then it must always re-base the return value. Originally there was a (misguided) attempt prevent wbc.nr_to_write from going negative. In fact, it's necessary to allow nr_to_write to be negative so that wb_writeback() can correctly calculate how many pages were actually written. Signed-off-by: Richard Kennedy Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed