diff options
author | 2011-08-08 15:22:00 -0600 | |
---|---|---|
committer | 2011-12-18 14:20:23 +0800 | |
commit | 2f800fbd777b792de54187088df19a7df0251254 (patch) | |
tree | 2dc813b41da42d647468dafcf49a0b9e673df8b5 /kernel/fork.c | |
parent | writeback: fix dirtied pages accounting on sub-page writes (diff) | |
download | wireguard-linux-2f800fbd777b792de54187088df19a7df0251254.tar.xz wireguard-linux-2f800fbd777b792de54187088df19a7df0251254.zip |
writeback: fix dirtied pages accounting on redirty
De-account the accumulative dirty counters on page redirty.
Page redirties (very common in ext4) will introduce mismatch between
counters (a) and (b)
a) NR_DIRTIED, BDI_DIRTIED, tsk->nr_dirtied
b) NR_WRITTEN, BDI_WRITTEN
This will introduce systematic errors in balanced_rate and result in
dirty page position errors (ie. the dirty pages are no longer balanced
around the global/bdi setpoints).
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 'kernel/fork.c')
0 files changed, 0 insertions, 0 deletions