Re: [RESEND PATCH] mm/hotplug: don't reset pagetype flags for offline

2019-03-12 Thread Michal Hocko
On Tue 12-03-19 16:35:06, Oscar Salvador wrote: [...] > One thing I noticed when looking at start_isolate_page_range and > undo_isolate_page_range functions, is that start_isolate_page_range increments > the number of isolated pageblocks, while undo_isolate_page_range does the > counter > part.

Re: [RESEND PATCH] mm/hotplug: don't reset pagetype flags for offline

2019-03-12 Thread Oscar Salvador
On Sun, Mar 10, 2019 at 04:01:02PM -0400, Qian Cai wrote: > The commit f1dd2cd13c4b ("mm, memory_hotplug: do not associate hotadded > memory to zones until online") introduced move_pfn_range_to_zone() which > calls memmap_init_zone() during onlining a memory block. > memmap_init_zone() will reset

Re: [RESEND PATCH] mm/hotplug: don't reset pagetype flags for offline

2019-03-12 Thread Michal Hocko
On Sun 10-03-19 16:01:02, Qian Cai wrote: > The commit f1dd2cd13c4b ("mm, memory_hotplug: do not associate hotadded > memory to zones until online") introduced move_pfn_range_to_zone() which > calls memmap_init_zone() during onlining a memory block. > memmap_init_zone() will reset pagetype flags

[RESEND PATCH] mm/hotplug: don't reset pagetype flags for offline

2019-03-10 Thread Qian Cai
The commit f1dd2cd13c4b ("mm, memory_hotplug: do not associate hotadded memory to zones until online") introduced move_pfn_range_to_zone() which calls memmap_init_zone() during onlining a memory block. memmap_init_zone() will reset pagetype flags and makes migrate type to be MOVABLE. However, in