]> Git Repo - linux.git/commit
mm/compaction.c: clear total_{migrate,free}_scanned before scanning a new zone
authorYafang Shao <[email protected]>
Mon, 23 Sep 2019 22:36:54 +0000 (15:36 -0700)
committerLinus Torvalds <[email protected]>
Tue, 24 Sep 2019 22:54:10 +0000 (15:54 -0700)
commita94b525241c0fff3598809131d7cfcfe1d572d8c
tree3d07f2c6c068c1ed2e73f52dc848ad477058d010
parent63398413c00c7836ea87a1fa205c91d2199b25cf
mm/compaction.c: clear total_{migrate,free}_scanned before scanning a new zone

total_{migrate,free}_scanned will be added to COMPACTMIGRATE_SCANNED and
COMPACTFREE_SCANNED in compact_zone().  We should clear them before
scanning a new zone.  In the proc triggered compaction, we forgot clearing
them.

[[email protected]: introduce a helper compact_zone_counters_init()]
Link: http://lkml.kernel.org/r/[email protected]
[[email protected]: expand compact_zone_counters_init() into its single callsite, per mhocko]
[[email protected]: squash compact_zone() list_head init as well]
Link: http://lkml.kernel.org/r/[email protected]
[[email protected]: kcompactd_do_work(): avoid unnecessary initialization of cc.zone]
Link: http://lkml.kernel.org/r/[email protected]
Fixes: 7f354a548d1c ("mm, compaction: add vmstats for kcompactd work")
Signed-off-by: Yafang Shao <[email protected]>
Signed-off-by: Vlastimil Babka <[email protected]>
Reviewed-by: Vlastimil Babka <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Yafang Shao <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/compaction.c
This page took 0.04426 seconds and 4 git commands to generate.