Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 4 Oct 2002 13:12:50 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 4 Oct 2002 13:12:50 -0400 Received: from [198.149.18.6] ([198.149.18.6]:13706 "EHLO tolkor.sgi.com") by vger.kernel.org with ESMTP id ; Fri, 4 Oct 2002 13:12:47 -0400 Date: Fri, 4 Oct 2002 20:32:30 -0400 From: Christoph Hellwig To: marcelo@conectiva.com.br Cc: gone@us.ibm.com, linux-kernel@vger.kernel.org Subject: [PATCH][RESENT] cleanup some i386 mm init code Message-ID: <20021004203230.A9813@sgi.com> Mail-Followup-To: Christoph Hellwig , marcelo@conectiva.com.br, gone@us.ibm.com, linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1147 Lines: 40 Cleanup one_highpage_init() as in 2.5. Patricia ACKed this change long ago. --- linux-2.4.20-pre5/arch/i386/mm/init.c Tue Aug 20 11:36:59 2002 +++ linux/arch/i386/mm/init.c Fri Sep 6 13:14:37 2002 @@ -449,21 +449,14 @@ static inline int page_kills_ppro(unsign #ifdef CONFIG_HIGHMEM void __init one_highpage_init(struct page *page, int pfn, int bad_ppro) { - if (!page_is_ram(pfn)) { + if (page_is_ram(pfn) && !(bad_ppro && page_kills_ppro(pfn))) { + ClearPageReserved(page); + set_bit(PG_highmem, &page->flags); + set_page_count(page, 1); + __free_page(page); + totalhigh_pages++; + } else SetPageReserved(page); - return; - } - - if (bad_ppro && page_kills_ppro(pfn)) { - SetPageReserved(page); - return; - } - - ClearPageReserved(page); - set_bit(PG_highmem, &page->flags); - atomic_set(&page->count, 1); - __free_page(page); - totalhigh_pages++; } #endif /* CONFIG_HIGHMEM */ - 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/