From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx167.postini.com [74.125.245.167]) by kanga.kvack.org (Postfix) with SMTP id 687836B017B for ; Mon, 12 Dec 2011 09:35:09 -0500 (EST) Received: by vbbfn1 with SMTP id fn1so5043997vbb.14 for ; Mon, 12 Dec 2011 06:35:08 -0800 (PST) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Subject: Re: [PATCH 03/11] mm: mmzone: introduce zone_pfn_same_memmap() References: <1321634598-16859-1-git-send-email-m.szyprowski@samsung.com> <1321634598-16859-4-git-send-email-m.szyprowski@samsung.com> <20111212141953.GD3277@csn.ul.ie> Date: Mon, 12 Dec 2011 15:35:03 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable From: "Michal Nazarewicz" Message-ID: In-Reply-To: <20111212141953.GD3277@csn.ul.ie> Sender: owner-linux-mm@kvack.org List-ID: To: Marek Szyprowski , Mel Gorman Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-mm@kvack.org, linaro-mm-sig@lists.linaro.org, Kyungmin Park , Russell King , Andrew Morton , KAMEZAWA Hiroyuki , Ankita Garg , Daniel Walker , Arnd Bergmann , Jesse Barker , Jonathan Corbet , Shariq Hasnain , Chunsang Jeong , Dave Hansen > On Fri, Nov 18, 2011 at 05:43:10PM +0100, Marek Szyprowski wrote: >> From: Michal Nazarewicz >> diff --git a/mm/compaction.c b/mm/compaction.c >> index 6afae0e..09c9702 100644 >> --- a/mm/compaction.c >> +++ b/mm/compaction.c >> @@ -111,7 +111,10 @@ skip: >> >> next: >> pfn +=3D isolated; >> - page +=3D isolated; >> + if (zone_pfn_same_memmap(pfn - isolated, pfn)) >> + page +=3D isolated; >> + else >> + page =3D pfn_to_page(pfn); >> } On Mon, 12 Dec 2011 15:19:53 +0100, Mel Gorman wrote: > Is this necessary? > > We are isolating pages, the largest of which is a MAX_ORDER_NR_PAGES > page. [...] This is not true for CMA. > That said, everywhere else managed to avoid checks like this by always= > scanning in units of pageblocks. Maybe this should be structured > the same way to guarantee pfn_valid is called at least per pageblock > (even though only once per MAX_ORDER_NR_PAGES is necessary). I'll look into that. -- = Best regards, _ _ .o. | Liege of Serenely Enlightened Majesty of o' \,=3D./ `o ..o | Computer Science, Micha=C5=82 =E2=80=9Cmina86=E2=80=9D Nazarewicz= (o o) ooo +------------------ooO--(_)--Ooo-- -- 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/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org