patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / arch / s390 / mm / init.c
index bc7062a..177a3d2 100644 (file)
@@ -69,7 +69,7 @@ void show_mem(void)
                 else if (PageSwapCache(mem_map+i))
                         cached++;
                 else if (page_count(mem_map+i))
-                        shared += atomic_read(&mem_map[i].count) - 1;
+                        shared += page_count(mem_map+i) - 1;
         }
         printk("%d pages of RAM\n",total);
         printk("%d reserved pages\n",reserved);