Index: linux-2.6.17-rc6-cl/fs/inode.c =================================================================== --- linux-2.6.17-rc6-cl.orig/fs/inode.c 2006-06-13 10:45:23.696420315 -0700 +++ linux-2.6.17-rc6-cl/fs/inode.c 2006-06-13 11:01:56.321510372 -0700 @@ -452,15 +452,14 @@ static void prune_icache(int nr_to_scan) nr_pruned++; } inodes_stat.nr_unused -= nr_pruned; + if (current_is_kswapd()) + __count_vm_events(KSWAPD_INODESTEAL, reap); + else + __count_vm_events(PGINODESTEAL, reap); spin_unlock(&inode_lock); dispose_list(&freeable); mutex_unlock(&iprune_mutex); - - if (current_is_kswapd()) - count_vm_events(KSWAPD_INODESTEAL, reap); - else - count_vm_events(PGINODESTEAL, reap); } /* Index: linux-2.6.17-rc6-cl/mm/swap.c =================================================================== --- linux-2.6.17-rc6-cl.orig/mm/swap.c 2006-06-13 10:45:23.702279327 -0700 +++ linux-2.6.17-rc6-cl/mm/swap.c 2006-06-13 11:07:15.947231965 -0700 @@ -88,7 +88,7 @@ int rotate_reclaimable_page(struct page spin_lock_irqsave(&zone->lru_lock, flags); if (PageLRU(page) && !PageActive(page)) { list_move_tail(&page->lru, &zone->inactive_list); - count_vm_event(PGROTATED); + __count_vm_event(PGROTATED); } if (!test_clear_page_writeback(page)) BUG();