From patchwork Tue Dec 15 20:25:47 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Domenico Andreoli X-Patchwork-Id: 67738 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nBFKQ1nV000732 for ; Tue, 15 Dec 2009 20:26:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933012AbZLOU0B (ORCPT ); Tue, 15 Dec 2009 15:26:01 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761075AbZLOU0A (ORCPT ); Tue, 15 Dec 2009 15:26:00 -0500 Received: from mail-ew0-f219.google.com ([209.85.219.219]:50423 "EHLO mail-ew0-f219.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755429AbZLOUZ7 (ORCPT ); Tue, 15 Dec 2009 15:25:59 -0500 Received: by ewy19 with SMTP id 19so268299ewy.21 for ; Tue, 15 Dec 2009 12:25:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:subject :message-id:mail-followup-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=qLoIf/GFQFR3YpCqi9SpMp8wSQwUskDZCQ9zmuibdUI=; b=h0l+RT7N6No+zmJmdckznezfoxeRNkVi8zPCYQZ8TgtXiLE8BvvJOwL9QTFJCAwKpg 6r52Z7qE1d3H0KD55ly9f/SCogN3ZeOYvu/AoucquqGiIdcbeX75VImSsKRQ62QpPG+k Dp18PiFnO8t7y1OuOsNWRCw/lt646rUIOTSn4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; b=METPafeklLnlbXQdPI9SHM3SylsIOV/h7bWKz6FUDbAqXQEhzJpal9zlwc9YM/UrQd aDT+kwQOwPqYWCnOLmR7h5axIhJR3kcE7f2bQQ1FJ9Ip01nJGgGdlxxQbIB6ffj4VGLk d/RKmXrsNrjnpjsOFivjVv1iHO89P36e5o2K0= Received: by 10.216.90.1 with SMTP id d1mr5217wef.136.1260908757633; Tue, 15 Dec 2009 12:25:57 -0800 (PST) Received: from raptus.dandreoli.com (host158-49-dynamic.45-79-r.retail.telecomitalia.it [79.45.49.158]) by mx.google.com with ESMTPS id u14sm703341gvf.4.2009.12.15.12.25.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 15 Dec 2009 12:25:55 -0800 (PST) Received: by raptus.dandreoli.com (Postfix, from userid 1000) id DF3A11A4FC; Tue, 15 Dec 2009 21:25:47 +0100 (CET) Date: Tue, 15 Dec 2009 21:25:47 +0100 From: Domenico Andreoli To: linux-parisc@vger.kernel.org Subject: Re: my usual problem with 64bit kernel Message-ID: <20091215202547.GA18193@raptus.dandreoli.com> Mail-Followup-To: linux-parisc@vger.kernel.org References: <20091204172838.GA4551@raptus.dandreoli.com> <4B1959E2.1030700@gmx.de> <20091205083511.GA6559@raptus.dandreoli.com> <20091207234404.GA5083@raptus.dandreoli.com> <20091209235038.GA12806@raptus.dandreoli.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20091209235038.GA12806@raptus.dandreoli.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -749,23 +749,6 @@ int move_freepages_block(struct zone *zone, struct page *page, int migratetype) return move_freepages(zone, start_page, end_page, migratetype); } -/* Return the page with the lowest PFN in the list */ -static struct page *min_page(struct list_head *list) -{ - unsigned long min_pfn = -1UL; - struct page *min_page = NULL, *page;; - - list_for_each_entry(page, list, lru) { - unsigned long pfn = page_to_pfn(page); - if (pfn < min_pfn) { - min_pfn = pfn; - min_page = page; - } - } - - return min_page; -} - /* Remove an element from the buddy allocator from the fallback list */ static struct page *__rmqueue_fallback(struct zone *zone, int order, int start_migratetype) @@ -789,11 +772,8 @@ static struct page *__rmqueue_fallback(struct zone *zone, int order, if (list_empty(&area->free_list[migratetype])) continue; - /* Bias kernel allocations towards low pfns */ page = list_entry(area->free_list[migratetype].next, struct page, lru); - if (unlikely(start_migratetype != MIGRATE_MOVABLE)) - page = min_page(&area->free_list[migratetype]); area->nr_free--; /*