From 4f035e92f67428a2660d643788f5f350ffb38794 Mon Sep 17 00:00:00 2001 From: Andy Whitcroft Date: Wed, 6 Dec 2006 20:33:03 -0800 Subject: [PATCH] --- yaml --- r: 42682 b: refs/heads/master c: 25ba77c141dbcd2602dd0171824d0d72aa023a01 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/asm-ia64/pgalloc.h | 2 +- trunk/include/linux/mm.h | 6 +++--- trunk/mm/mempolicy.c | 2 +- trunk/mm/page_alloc.c | 2 +- trunk/mm/sparse.c | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/[refs] b/[refs] index 824c596c1ac3..a20c3174e12c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: bc4ba393c007248f76c05945abb7b7b892cdd1cc +refs/heads/master: 25ba77c141dbcd2602dd0171824d0d72aa023a01 diff --git a/trunk/include/asm-ia64/pgalloc.h b/trunk/include/asm-ia64/pgalloc.h index 9cb68e9b377e..393e04c42a2c 100644 --- a/trunk/include/asm-ia64/pgalloc.h +++ b/trunk/include/asm-ia64/pgalloc.h @@ -60,7 +60,7 @@ static inline void *pgtable_quicklist_alloc(void) static inline void pgtable_quicklist_free(void *pgtable_entry) { #ifdef CONFIG_NUMA - unsigned long nid = page_to_nid(virt_to_page(pgtable_entry)); + int nid = page_to_nid(virt_to_page(pgtable_entry)); if (unlikely(nid != numa_node_id())) { free_page((unsigned long)pgtable_entry); diff --git a/trunk/include/linux/mm.h b/trunk/include/linux/mm.h index 840303769c11..0e266fe1b4c4 100644 --- a/trunk/include/linux/mm.h +++ b/trunk/include/linux/mm.h @@ -456,7 +456,7 @@ static inline int page_zone_id(struct page *page) return (page->flags >> ZONEID_PGSHIFT) & ZONEID_MASK; } -static inline unsigned long zone_to_nid(struct zone *zone) +static inline int zone_to_nid(struct zone *zone) { #ifdef CONFIG_NUMA return zone->node; @@ -466,9 +466,9 @@ static inline unsigned long zone_to_nid(struct zone *zone) } #ifdef NODE_NOT_IN_PAGE_FLAGS -extern unsigned long page_to_nid(struct page *page); +extern int page_to_nid(struct page *page); #else -static inline unsigned long page_to_nid(struct page *page) +static inline int page_to_nid(struct page *page) { return (page->flags >> NODES_PGSHIFT) & NODES_MASK; } diff --git a/trunk/mm/mempolicy.c b/trunk/mm/mempolicy.c index fb907236bbd8..e7b69c90cfd6 100644 --- a/trunk/mm/mempolicy.c +++ b/trunk/mm/mempolicy.c @@ -221,7 +221,7 @@ static int check_pte_range(struct vm_area_struct *vma, pmd_t *pmd, orig_pte = pte = pte_offset_map_lock(vma->vm_mm, pmd, addr, &ptl); do { struct page *page; - unsigned int nid; + int nid; if (!pte_present(*pte)) continue; diff --git a/trunk/mm/page_alloc.c b/trunk/mm/page_alloc.c index 86f2984f8b79..614d427854a8 100644 --- a/trunk/mm/page_alloc.c +++ b/trunk/mm/page_alloc.c @@ -1407,7 +1407,7 @@ unsigned int nr_free_pagecache_pages(void) static inline void show_node(struct zone *zone) { if (NUMA_BUILD) - printk("Node %ld ", zone_to_nid(zone)); + printk("Node %d ", zone_to_nid(zone)); } void si_meminfo(struct sysinfo *val) diff --git a/trunk/mm/sparse.c b/trunk/mm/sparse.c index 158d6a2a5263..ac26eb0d73cd 100644 --- a/trunk/mm/sparse.c +++ b/trunk/mm/sparse.c @@ -36,7 +36,7 @@ static u8 section_to_node_table[NR_MEM_SECTIONS] __cacheline_aligned; static u16 section_to_node_table[NR_MEM_SECTIONS] __cacheline_aligned; #endif -unsigned long page_to_nid(struct page *page) +int page_to_nid(struct page *page) { return section_to_node_table[page_to_section(page)]; }