mm, migrate: remove reason argument from new_page_t
authorMichal Hocko <[email protected]>
Tue, 10 Apr 2018 23:30:03 +0000 (16:30 -0700)
committerLinus Torvalds <[email protected]>
Wed, 11 Apr 2018 17:28:32 +0000 (10:28 -0700)
commit666feb21a0083e5b29ddd96588553ffa0cc357b6
tree2b470bb99e3fdf84b1df32ffe726adb0119084e5
parenta49bd4d7163707de377aee062f17befef6da891b
mm, migrate: remove reason argument from new_page_t

No allocation callback is using this argument anymore.  new_page_node
used to use this parameter to convey node_id resp.  migration error up
to move_pages code (do_move_page_to_node_array).  The error status never
made it into the final status field and we have a better way to
communicate node id to the status field now.  All other allocation
callbacks simply ignored the argument so we can drop it finally.

[[email protected]: fix migration callback]
Link: http://lkml.kernel.org/r/[email protected]
[[email protected]: fix alloc_misplaced_dst_page()]
[[email protected]: fix build]
Link: http://lkml.kernel.org/r/[email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Michal Hocko <[email protected]>
Reviewed-by: Zi Yan <[email protected]>
Cc: Andrea Reale <[email protected]>
Cc: Anshuman Khandual <[email protected]>
Cc: Kirill A. Shutemov <[email protected]>
Cc: Mike Kravetz <[email protected]>
Cc: Naoya Horiguchi <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/powerpc/mm/mmu_context_iommu.c
include/linux/migrate.h
include/linux/page-isolation.h
mm/compaction.c
mm/internal.h
mm/memory-failure.c
mm/memory_hotplug.c
mm/mempolicy.c
mm/migrate.c
mm/page_isolation.c