Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42682
b: refs/heads/master
c: 25ba77c
h: refs/heads/master
v: v3
  • Loading branch information
Andy Whitcroft authored and Linus Torvalds committed Dec 7, 2006
1 parent a71a50e commit 4f035e9
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bc4ba393c007248f76c05945abb7b7b892cdd1cc
refs/heads/master: 25ba77c141dbcd2602dd0171824d0d72aa023a01
2 changes: 1 addition & 1 deletion trunk/include/asm-ia64/pgalloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions trunk/include/linux/mm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/mm/mempolicy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion trunk/mm/sparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)];
}
Expand Down

0 comments on commit 4f035e9

Please sign in to comment.