mm: show page state only for cma
authorCho KyongHo <pullip.cho@samsung.com>
Tue, 31 Oct 2017 12:03:37 +0000 (21:03 +0900)
committerhskang <hs1218.kang@samsung.com>
Mon, 27 Aug 2018 07:22:48 +0000 (16:22 +0900)
commit9a698553018b15d7301264ad60981356e6b0b66e
treeb39ad39116e419dbfd2faa86f262e0dfa17cab8f
parenta7f82f50063321e423aa175dce3ea718c22d2e64
mm: show page state only for cma

migrate_pages() is not only called by cma but also by compaction and
memory hotplug-out.
"fbca0939fc96 [COMMON] mm: show page state on migration failure"
inserts printing simple states of the pages that are failed in
migration to another pages. Migration for cma and memory hotplug-out
seldom fails but that of compaction does not since compaction tries
to migrate all anonymous pages. Therefore the state of the unmigrated
pages is not necessary for compaction. Rather it may suffer from too
many unnecessary mirgration failre log messages.

Change-Id: Ica55bbcacc94a7b16dc76410b404852a98bc482a
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
include/linux/migrate.h
mm/debug.c
mm/migrate.c
mm/page_alloc.c