summaryrefslogtreecommitdiffstats
path: root/mm/memfd.c
diff options
context:
space:
mode:
authorYafang Shao <laoar.shao@gmail.com>2019-09-23 15:36:54 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-05 15:12:26 +0200
commit3d92c2909f1977a3ac1ede01e5729f30ae755ac0 (patch)
treea1bf0c168748e3d8d583784bb4620d79284092aa /mm/memfd.c
parentb8ce9ad765e2ca90394d2a6eaa1a3eff9066e7d0 (diff)
downloadlinux-stable-3d92c2909f1977a3ac1ede01e5729f30ae755ac0.tar.gz
linux-stable-3d92c2909f1977a3ac1ede01e5729f30ae755ac0.tar.bz2
linux-stable-3d92c2909f1977a3ac1ede01e5729f30ae755ac0.zip
mm/compaction.c: clear total_{migrate,free}_scanned before scanning a new zone
commit a94b525241c0fff3598809131d7cfcfe1d572d8c upstream. 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. [laoar.shao@gmail.com: introduce a helper compact_zone_counters_init()] Link: http://lkml.kernel.org/r/1563869295-25748-1-git-send-email-laoar.shao@gmail.com [akpm@linux-foundation.org: expand compact_zone_counters_init() into its single callsite, per mhocko] [vbabka@suse.cz: squash compact_zone() list_head init as well] Link: http://lkml.kernel.org/r/1fb6f7da-f776-9e42-22f8-bbb79b030b98@suse.cz [akpm@linux-foundation.org: kcompactd_do_work(): avoid unnecessary initialization of cc.zone] Link: http://lkml.kernel.org/r/1563789275-9639-1-git-send-email-laoar.shao@gmail.com Fixes: 7f354a548d1c ("mm, compaction: add vmstats for kcompactd work") Signed-off-by: Yafang Shao <laoar.shao@gmail.com> Signed-off-by: Vlastimil Babka <vbabka@suse.cz> Reviewed-by: Vlastimil Babka <vbabka@suse.cz> Cc: David Rientjes <rientjes@google.com> Cc: Yafang Shao <shaoyafang@didiglobal.com> Cc: Mel Gorman <mgorman@techsingularity.net> Cc: Michal Hocko <mhocko@suse.com> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/memfd.c')
0 files changed, 0 insertions, 0 deletions