diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2011-04-14 07:52:37 -0600 |
---|---|---|
committer | Wu Fengguang <fengguang.wu@intel.com> | 2011-12-18 14:20:22 +0800 |
commit | d3bc1fef9389e409a772ea174a5e41a6f93d9b7b (patch) | |
tree | d1e47354263b7c930a7ec4428909693d10a10c50 /drivers/hwmon/sht21.c | |
parent | 54848d73f9f254631303d6eab9b976855988b266 (diff) |
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 <jack@suse.cz>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Diffstat (limited to 'drivers/hwmon/sht21.c')
0 files changed, 0 insertions, 0 deletions