Re: [PATCH] Make is_mem_section_removable more conformable withofflining code

From: Michal Hocko
Date: Wed Sep 01 2010 - 08:42:02 EST


On Wed 01-09-10 14:19:51, Michal Hocko wrote:
> On Tue 31-08-10 22:19:42, Wu Fengguang wrote:
> > On Mon, Aug 23, 2010 at 05:22:46PM +0800, Michal Hocko wrote:
> > > On Sun 22-08-10 08:42:32, Wu Fengguang wrote:
> > > > Hi Michal,
> > >
> > > Hi,
> > >
> > > >
> > > > It helps to explain in changelog/code
> > > >
> > > > - in what situation a ZONE_MOVABLE will contain !MIGRATE_MOVABLE
> > > > pages?
> > >
> > > page can be MIGRATE_RESERVE IIUC.
> >
> > Yup, it may also be set to MIGRATE_ISOLATE by soft_offline_page().
>
> Doesn't it make sense to check for !MIGRATE_UNMOVABLE then?

Something like the following patch.