Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36153
b: refs/heads/master
c: d5f541e
h: refs/heads/master
i:
  36151: a2161c9
v: v3
  • Loading branch information
Christoph Lameter authored and Linus Torvalds committed Sep 27, 2006
1 parent 3b66f5d commit e8006a9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 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: 765c4507af71c39aba21006bbd3ec809fe9714ff
refs/heads/master: d5f541ed6e31518508c688912e7464facf253c87
6 changes: 5 additions & 1 deletion trunk/include/linux/mm.h
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,11 @@ static inline struct zone *page_zone(struct page *page)

static inline unsigned long zone_to_nid(struct zone *zone)
{
return zone->zone_pgdat->node_id;
#ifdef CONFIG_NUMA
return zone->node;
#else
return 0;
#endif
}

static inline unsigned long page_to_nid(struct page *page)
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/mmzone.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ struct zone {
unsigned long lowmem_reserve[MAX_NR_ZONES];

#ifdef CONFIG_NUMA
int node;
/*
* zone reclaim becomes active if more unmapped pages exist.
*/
Expand Down
1 change: 1 addition & 0 deletions trunk/mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2405,6 +2405,7 @@ static void __meminit free_area_init_core(struct pglist_data *pgdat,
zone->spanned_pages = size;
zone->present_pages = realsize;
#ifdef CONFIG_NUMA
zone->node = nid;
zone->min_unmapped_pages = (realsize*sysctl_min_unmapped_ratio)
/ 100;
zone->min_slab_pages = (realsize * sysctl_min_slab_ratio) / 100;
Expand Down

0 comments on commit e8006a9

Please sign in to comment.