From: Wu Fengguang Date: Thu, 14 Apr 2011 13:52:37 +0000 (-0600) Subject: writeback: fix dirtied pages accounting on sub-page writes X-Git-Tag: v3.3-rc1~112^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3bc1fef9389e409a772ea174a5e41a6f93d9b7b;p=pandora-kernel.git writeback: fix dirtied pages accounting on sub-page writes When dd in 512bytes, generic_perform_write() calls balance_dirty_pages_ratelimited() 8 times for the same page, but obviously the page is only dirtied once. Fix it by accounting tsk->nr_dirtied and bdp_ratelimits at page dirty time. Acked-by: Jan Kara Acked-by: Peter Zijlstra Signed-off-by: Wu Fengguang --- Reading git-diff-tree failed