Index: linux-2.6.15-rc5-mm3/arch/um/kernel/skas/mmu.c =================================================================== --- linux-2.6.15-rc5-mm3.orig/arch/um/kernel/skas/mmu.c 2005-12-03 21:10:42.000000000 -0800 +++ linux-2.6.15-rc5-mm3/arch/um/kernel/skas/mmu.c 2005-12-20 14:43:06.000000000 -0800 @@ -156,7 +156,7 @@ void destroy_context_skas(struct mm_stru free_page(mmu->id.stack); pte_lock_deinit(virt_to_page(mmu->last_page_table)); pte_free_kernel((pte_t *) mmu->last_page_table); - dec_page_state(nr_page_table_pages); + dec_zone_page_state(virt_to_page(mmu->last_page_table), NR_PAGETABLE); #ifdef CONFIG_3_LEVEL_PGTABLES pmd_free((pmd_t *) mmu->last_pmd); #endif Index: linux-2.6.15-rc5-mm3/fs/ncpfs/mmap.c =================================================================== --- linux-2.6.15-rc5-mm3.orig/fs/ncpfs/mmap.c 2005-12-03 21:10:42.000000000 -0800 +++ linux-2.6.15-rc5-mm3/fs/ncpfs/mmap.c 2005-12-20 14:44:05.000000000 -0800 @@ -93,7 +93,7 @@ static struct page* ncp_file_mmap_nopage */ if (type) *type = VM_FAULT_MAJOR; - inc_page_state(pgmajfault); + inc_zone_page_state(page, PGMAJFAULT); return page; } Index: linux-2.6.15-rc5-mm3/arch/arm/mm/mm-armv.c =================================================================== --- linux-2.6.15-rc5-mm3.orig/arch/arm/mm/mm-armv.c 2005-12-20 14:40:34.000000000 -0800 +++ linux-2.6.15-rc5-mm3/arch/arm/mm/mm-armv.c 2005-12-20 14:41:38.000000000 -0800 @@ -228,7 +228,7 @@ void free_pgd_slow(pgd_t *pgd) pte = pmd_page(*pmd); pmd_clear(pmd); - dec_page_state(nr_page_table_pages); + dec_zone_page_state(pte, NR_PAGETABLE); pte_lock_deinit(pte); pte_free(pte); pmd_free(pmd); Index: linux-2.6.15-rc5-mm3/drivers/parisc/led.c =================================================================== --- linux-2.6.15-rc5-mm3.orig/drivers/parisc/led.c 2005-12-03 21:10:42.000000000 -0800 +++ linux-2.6.15-rc5-mm3/drivers/parisc/led.c 2005-12-20 14:46:37.000000000 -0800 @@ -410,14 +410,12 @@ static __inline__ int led_get_net_activi static __inline__ int led_get_diskio_activity(void) { static unsigned long last_pgpgin, last_pgpgout; - struct page_state pgstat; int changed; - get_full_page_state(&pgstat); /* get no of sectors in & out */ - /* Just use a very simple calculation here. Do not care about overflow, since we only want to know if there was activity or not. */ - changed = (pgstat.pgpgin != last_pgpgin) || (pgstat.pgpgout != last_pgpgout); + changed = (get_global_events(PGPGIN) != last_pgpgin) || + (get_global_events(PGPGOUT) != last_pgpgout); last_pgpgin = pgstat.pgpgin; last_pgpgout = pgstat.pgpgout;