From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail143.messagelabs.com (mail143.messagelabs.com [216.82.254.35]) by kanga.kvack.org (Postfix) with ESMTP id 287F56B0044 for ; Fri, 18 Dec 2009 14:16:27 -0500 (EST) Date: Fri, 18 Dec 2009 19:16:18 +0000 From: Mel Gorman Subject: Re: [PATCH 22 of 28] clear_huge_page fix Message-ID: <20091218191618.GG21194@csn.ul.ie> References: <1a99eca9036dcf88bf0f.1261076425@v2.random> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1a99eca9036dcf88bf0f.1261076425@v2.random> Sender: owner-linux-mm@kvack.org To: Andrea Arcangeli Cc: linux-mm@kvack.org, Marcelo Tosatti , Adam Litke , Avi Kivity , Izik Eidus , Hugh Dickins , Nick Piggin , Rik van Riel , Andi Kleen , Dave Hansen , Benjamin Herrenschmidt , Ingo Molnar , Mike Travis , KAMEZAWA Hiroyuki , Christoph Lameter , Chris Wright , Andrew Morton List-ID: On Thu, Dec 17, 2009 at 07:00:25PM -0000, Andrea Arcangeli wrote: > From: Andrea Arcangeli > > sz is in bytes, MAX_ORDER_NR_PAGES is in pages. > > Signed-off-by: Andrea Arcangeli While accurate, it doesn't seem to have anything to do with the set. Should be sent up separetly. > --- > > diff --git a/mm/hugetlb.c b/mm/hugetlb.c > --- a/mm/hugetlb.c > +++ b/mm/hugetlb.c > @@ -402,7 +402,7 @@ static void clear_huge_page(struct page > { > int i; > > - if (unlikely(sz > MAX_ORDER_NR_PAGES)) { > + if (unlikely(sz/PAGE_SIZE > MAX_ORDER_NR_PAGES)) { > clear_gigantic_page(page, addr, sz); > return; > } > -- Mel Gorman Part-time Phd Student Linux Technology Center University of Limerick IBM Dublin Software Lab -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org