linux-sg2042/fs/f2fs
Chao Yu 9cf3c3898a f2fs: fix dirty page accounting when redirty
We should de-account dirty counters for page when redirty in ->writepage().

Wu Fengguang described in 'commit 971767caf632190f77a40b4011c19948232eed75':
"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)."

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
2014-02-28 13:09:08 +09:00
..
Kconfig f2fs: introduce CONFIG_F2FS_CHECK_FS for BUG_ON control 2013-10-29 15:43:01 +09:00
Makefile f2fs: key functions to handle inline data 2013-12-26 20:40:09 +09:00
acl.c f2fs: use generic posix ACL infrastructure 2014-01-25 23:58:19 -05:00
acl.h f2fs: use generic posix ACL infrastructure 2014-01-25 23:58:19 -05:00
checkpoint.c f2fs: fix dirty page accounting when redirty 2014-02-28 13:09:08 +09:00
data.c f2fs: fix dirty page accounting when redirty 2014-02-28 13:09:08 +09:00
debug.c f2fs: implement a lock-free stat_show 2014-02-24 16:00:41 +09:00
dir.c f2fs: introduce large directory support 2014-02-27 19:56:09 +09:00
f2fs.h f2fs: use existing macro to clean up some codes 2014-02-27 21:09:28 +09:00
file.c f2fs: use inode mutex to keep atomicity of f2fs_falloc 2014-02-17 14:58:53 +09:00
gc.c f2fs: readahead contiguous SSA blocks for f2fs_gc 2014-02-27 20:40:36 +09:00
gc.h f2fs: add a sysfs entry to control max_victim_search 2014-01-08 13:45:08 +09:00
hash.c f2fs: unify string length declarations and usage 2012-12-28 11:27:53 +09:00
inline.c f2fs: remove the needless parameter of f2fs_wait_on_page_writeback 2014-01-14 17:45:54 +09:00
inode.c f2fs: introduce large directory support 2014-02-27 19:56:09 +09:00
namei.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2014-01-28 08:38:04 -08:00
node.c f2fs: fix dirty page accounting when redirty 2014-02-28 13:09:08 +09:00
node.h f2fs: fix to mark the checkpointed nat entry correctly 2014-02-24 16:00:40 +09:00
recovery.c f2fs: use existing macro to clean up some codes 2014-02-27 21:09:28 +09:00
segment.c f2fs: introduce ra_meta_pages to readahead CP/NAT/SIT pages 2014-02-17 14:58:53 +09:00
segment.h f2fs: implement a lock-free stat_show 2014-02-24 16:00:41 +09:00
super.c f2fs: add an sysfs entry to control the directory level 2014-02-27 20:31:15 +09:00
xattr.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2014-01-28 08:38:04 -08:00
xattr.h f2fs: use generic posix ACL infrastructure 2014-01-25 23:58:19 -05:00