From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 3 Mar 2008 16:20:45 -0800 (PST) From: Christoph Lameter Subject: Re: [rfc 05/10] Sparsemem: Vmemmap does not need section bits In-Reply-To: Message-ID: References: <20080301040755.268426038@sgi.com> <20080301040814.772847658@sgi.com> <20080301133312.9ab8d826.kamezawa.hiroyu@jp.fujitsu.com> <20080304091809.b02b1e16.kamezawa.hiroyu@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: KAMEZAWA Hiroyuki Cc: linux-mm@kvack.org List-ID: Something like this? --- include/linux/mm.h | 2 ++ 1 file changed, 2 insertions(+) Index: linux-2.6/include/linux/mm.h =================================================================== --- linux-2.6.orig/include/linux/mm.h 2008-03-03 16:15:55.395071738 -0800 +++ linux-2.6/include/linux/mm.h 2008-03-03 16:16:49.047411228 -0800 @@ -500,10 +500,12 @@ static inline struct zone *page_zone(str return &NODE_DATA(page_to_nid(page))->node_zones[page_zonenum(page)]; } +#if defined(CONFIG_SPARSEMEM) && !defined(CONFIG_SPARSEMEM_VMEMMAP) static inline unsigned long page_to_section(struct page *page) { return (page->flags >> SECTIONS_PGSHIFT) & SECTIONS_MASK; } +#endif static inline void set_page_zone(struct page *page, enum zone_type zone) { -- 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