Re: [PATCH] Make is_mem_section_removable more conformable with offlining code

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Michal Hocko
Date: Monday, August 23, 2010 - 2:22 am

On Sun 22-08-10 08:42:32, Wu Fengguang wrote:

Hi,


page can be MIGRATE_RESERVE IIUC.


I would assume that the MIGRATE_MOVABLE test is not necessary (given that
the whole zone is set as movable) but this test is used also in the
offlining path (in set_migratetype_isolate) and the primary reason for
this patch is to sync those two checks. 

I am not familiar with all the possible cases for migrate flags so the
test reduction should be better done by someone more familiar with the
code (the zone flag test is much more easier than the whole
get_pageblock_migratetype so this could be a win in the end).


Free pages can be from non movable zone, right? I know that having a
zone with the free page blocks in non-movable zone is extremely 
improbable but what is the point of this check anyway? So yes, this is
more to be in sync than anything more fundamental.


-- 
Michal Hocko
L3 team 
SUSE LINUX s.r.o.
Lihovarska 1060/12
190 00 Praha 9    
Czech Republic
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] Make is_mem_section_removable more conformable ..., Michal Hocko, (Mon Aug 23, 2:22 am)
Re: [PATCH] Make is_mem_section_removable more conformable ..., KAMEZAWA Hiroyuki, (Tue Aug 31, 6:19 pm)
Re: [PATCH] Make is_mem_section_removable more conformable ..., KAMEZAWA Hiroyuki, (Wed Sep 1, 10:45 pm)
[PATCH 1/2][BUGFIX] fix next active pageblock calculation, KAMEZAWA Hiroyuki, (Thu Sep 2, 8:11 pm)
[PATCH 3/2][BUGFIX] fix memory isolation notifier return v ..., KAMEZAWA Hiroyuki, (Fri Sep 3, 12:57 am)