From: Wu Fengguang Date: Mon, 8 Aug 2011 21:19:47 +0000 (-0600) Subject: btrfs: fix dirtied pages accounting on sub-page writes X-Git-Tag: v3.3-rc1~112^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32c7f202a4801252a0f3578807b75a961f792870;p=pandora-kernel.git btrfs: fix dirtied pages accounting on sub-page writes When doing 1KB sequential writes to the same page, balance_dirty_pages_ratelimited_nr() should be called once instead of 4 times, the latter makes the dirtier tasks be throttled much too heavy. Fix it with proper de-accounting on clear_page_dirty_for_io(). CC: Chris Mason Signed-off-by: Wu Fengguang --- Reading git-diff-tree failed