Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755583Ab3IITxp (ORCPT ); Mon, 9 Sep 2013 15:53:45 -0400 Received: from e31.co.us.ibm.com ([32.97.110.149]:34498 "EHLO e31.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754333Ab3IITxo (ORCPT ); Mon, 9 Sep 2013 15:53:44 -0400 Date: Mon, 9 Sep 2013 14:53:35 -0500 From: Seth Jennings To: Krzysztof Kozlowski Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Bob Liu , Mel Gorman , Bartlomiej Zolnierkiewicz , Marek Szyprowski , Kyungmin Park , Dave Hansen , Minchan Kim Subject: Re: [RFC PATCH 2/4] mm: use mapcount for identifying zbud pages Message-ID: <20130909195335.GF4701@variantweb.net> References: <1377852176-30970-1-git-send-email-k.kozlowski@samsung.com> <1377852176-30970-3-git-send-email-k.kozlowski@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1377852176-30970-3-git-send-email-k.kozlowski@samsung.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13090919-8236-0000-0000-0000019952D3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 835 Lines: 21 On Fri, Aug 30, 2013 at 10:42:54AM +0200, Krzysztof Kozlowski wrote: > Currently zbud pages do not have any flags set so it is not possible to > identify them during migration or compaction. > > Implement PageZbud() by comparing page->_mapcount to -127 to distinguish > pages allocated by zbud. Just like PageBuddy() is implemented. > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Seth Jennings > --- > include/linux/mm.h | 23 +++++++++++++++++++++++ > mm/zbud.c | 4 ++++ > 2 files changed, 27 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/