patch-2.1.79 linux/arch/i386/mm/init.c
Next file: linux/arch/mips/kernel/irixelf.c
Previous file: linux/arch/i386/mm/fault.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Mon Jan 12 14:33:20 1998
- Orig file:
v2.1.78/linux/arch/i386/mm/init.c
- Orig date:
Fri Jan 2 14:37:01 1998
diff -u --recursive --new-file v2.1.78/linux/arch/i386/mm/init.c linux/arch/i386/mm/init.c
@@ -72,7 +72,7 @@
void show_mem(void)
{
int i,free = 0,total = 0,reserved = 0;
- int shared = 0;
+ int shared = 0, cached = 0;
printk("Mem-info:\n");
show_free_areas();
@@ -82,6 +82,8 @@
total++;
if (PageReserved(mem_map+i))
reserved++;
+ if (PageSwapCache(mem_map+i))
+ cached++;
else if (!atomic_read(&mem_map[i].count))
free++;
else
@@ -91,6 +93,7 @@
printk("%d free pages\n",free);
printk("%d reserved pages\n",reserved);
printk("%d pages shared\n",shared);
+ printk("%d pages swap cached\n",cached);
show_buffers();
#ifdef CONFIG_NET
show_net_buffers();
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov