|
@@ -1524,9 +1524,6 @@ void si_meminfo_node(struct sysinfo *val, int nid)
|
|
void show_free_areas(void)
|
|
void show_free_areas(void)
|
|
{
|
|
{
|
|
int cpu;
|
|
int cpu;
|
|
- unsigned long active;
|
|
|
|
- unsigned long inactive;
|
|
|
|
- unsigned long free;
|
|
|
|
struct zone *zone;
|
|
struct zone *zone;
|
|
|
|
|
|
for_each_zone(zone) {
|
|
for_each_zone(zone) {
|
|
@@ -1550,12 +1547,10 @@ void show_free_areas(void)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- get_zone_counts(&active, &inactive, &free);
|
|
|
|
-
|
|
|
|
printk("Active:%lu inactive:%lu dirty:%lu writeback:%lu unstable:%lu\n"
|
|
printk("Active:%lu inactive:%lu dirty:%lu writeback:%lu unstable:%lu\n"
|
|
" free:%lu slab:%lu mapped:%lu pagetables:%lu bounce:%lu\n",
|
|
" free:%lu slab:%lu mapped:%lu pagetables:%lu bounce:%lu\n",
|
|
- active,
|
|
|
|
- inactive,
|
|
|
|
|
|
+ global_page_state(NR_ACTIVE),
|
|
|
|
+ global_page_state(NR_INACTIVE),
|
|
global_page_state(NR_FILE_DIRTY),
|
|
global_page_state(NR_FILE_DIRTY),
|
|
global_page_state(NR_WRITEBACK),
|
|
global_page_state(NR_WRITEBACK),
|
|
global_page_state(NR_UNSTABLE_NFS),
|
|
global_page_state(NR_UNSTABLE_NFS),
|