patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / arch / alpha / mm / numa.c
index 70362f4..2cb8fa4 100644 (file)
@@ -384,7 +384,7 @@ show_mem(void)
                        else if (!page_count(lmem_map+i))
                                free++;
                        else
-                               shared += atomic_read(&lmem_map[i].count) - 1;
+                               shared += page_count(lmem_map + i) - 1;
                }
        }
        printk("%ld pages of RAM\n",total);