patch-2.3.44 linux/mm/page_alloc.c
Next file: linux/mm/vmscan.c
Previous file: linux/mm/numa.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Fri Feb 11 08:22:00 2000
- Orig file:
v2.3.43/linux/mm/page_alloc.c
- Orig date:
Thu Feb 10 17:11:23 2000
diff -u --recursive --new-file v2.3.43/linux/mm/page_alloc.c linux/mm/page_alloc.c
@@ -525,6 +525,9 @@
lmem_map = (struct page *)(PAGE_OFFSET +
MAP_ALIGN((unsigned long)lmem_map - PAGE_OFFSET));
*gmap = pgdat->node_mem_map = lmem_map;
+ pgdat->node_size = totalpages;
+ pgdat->node_start_paddr = zone_start_paddr;
+ pgdat->node_start_mapnr = (lmem_map - mem_map);
/*
* Initially all pages are reserved - free ones are freed
@@ -565,6 +568,9 @@
zone->pages_low = mask*2;
zone->pages_high = mask*3;
zone->low_on_memory = 0;
+ zone->zone_mem_map = mem_map + offset;
+ zone->zone_start_mapnr = offset;
+ zone->zone_start_paddr = zone_start_paddr;
for (i = 0; i < size; i++) {
struct page *page = mem_map + offset + i;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)