]> git.karo-electronics.de Git - karo-tx-linux.git/commit
btrfs: fix dirtied pages accounting on sub-page writes
authorWu Fengguang <fengguang.wu@intel.com>
Mon, 8 Aug 2011 21:19:47 +0000 (15:19 -0600)
committerWu Fengguang <fengguang.wu@intel.com>
Mon, 5 Dec 2011 06:06:31 +0000 (14:06 +0800)
commit71d94297e499b0e7d382cfa2eddfe85dfc1677f3
tree8c1df10c086140ff1ce2404d5dc65c0a9983b9e4
parent0d79928c77e4a9d6d728214960f10125ed1d7d9f
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 <chris.mason@oracle.com>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
fs/btrfs/file.c