From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757506Ab0HaOhM (ORCPT ); Tue, 31 Aug 2010 10:37:12 -0400 Received: from mga03.intel.com ([143.182.124.21]:2194 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757470Ab0HaOhK (ORCPT ); Tue, 31 Aug 2010 10:37:10 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.56,298,1280732400"; d="scan'208";a="319178609" Date: Tue, 31 Aug 2010 22:36:49 +0800 From: Wu Fengguang To: Michal Hocko Cc: "linux-mm@kvack.org" , Andrew Morton , "Kleen, Andi" , Haicheng Li , Christoph Lameter , "linux-kernel@vger.kernel.org" , Mel Gorman Subject: Re: [PATCH] Make is_mem_section_removable more conformable with offlining code Message-ID: <20100831143649.GA31730@localhost> References: <20100820141400.GD4636@tiehlicka.suse.cz> <20100822004232.GA11007@localhost> <20100823092246.GA25772@tiehlicka.suse.cz> <20100831141942.GA30353@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100831141942.GA30353@localhost> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 31, 2010 at 10:19:42PM +0800, 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(). Ah a non-movable page allocation could fall back into the movable zone. See __rmqueue_fallback() and the fallbacks[][] array. So the if (type != MIGRATE_MOVABLE && !pageblock_free(page)) check in is_mem_section_removable() is correct. It is set_migratetype_isolate() that should be fixed to use the same check. Thanks, Fengguang