Commit 02eaa78b authored by Andrea Arcangeli's avatar Andrea Arcangeli

mm: zone_reclaim: compaction: scan all memory with /proc/sys/vm/compact_memory

Reset the stats so /proc/sys/vm/compact_memory will scan all memory.
Signed-off-by: default avatarAndrea Arcangeli <aarcange@redhat.com>
Reviewed-by: default avatarRik van Riel <riel@redhat.com>
Acked-by: default avatarRafael Aquini <aquini@redhat.com>
Acked-by: default avatarMel Gorman <mgorman@suse.de>
parent 43dc77b0
......@@ -1643,13 +1643,15 @@ void compact_pgdat(pg_data_t *pgdat, int order)
static void compact_node(int nid)
{
pg_data_t *pgdat = NODE_DATA(nid);
struct compact_control cc = {
.order = -1,
.mode = MIGRATE_SYNC,
.ignore_skip_hint = true,
};
__compact_pgdat(NODE_DATA(nid), &cc);
reset_isolation_suitable(pgdat);
__compact_pgdat(pgdat, &cc);
}
/* Compact all nodes in the system */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment