]> 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>
Thu, 8 Dec 2011 02:49:38 +0000 (10:49 +0800)
commitcf4a8af63d8ec0810ddda8c1c4cd97e435b1deb4
tree8c1df10c086140ff1ce2404d5dc65c0a9983b9e4
parent63b4b0cb4e9829ecad75fe86445809f8318d44af
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