From 85530b97ee4ac2b0e312259f62709711f6a3248b Mon Sep 17 00:00:00 2001 From: Ivan Kokshaysky Date: Mon, 24 May 2004 18:42:55 -0700 Subject: [PATCH] [PATCH] compile fix for mm/init.c Fix another page->count reference (in addition to numa.c one that I've sent earlier). Ivan. --- arch/alpha/mm/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/alpha/mm/init.c b/arch/alpha/mm/init.c index d02ee459cc9d6..e80c2f520bc9e 100644 --- a/arch/alpha/mm/init.c +++ b/arch/alpha/mm/init.c @@ -117,7 +117,7 @@ show_mem(void) else if (!page_count(mem_map+i)) free++; else - shared += atomic_read(&mem_map[i].count) - 1; + shared += page_count(mem_map + i) - 1; } printk("%ld pages of RAM\n",total); printk("%ld free pages\n",free); -- 2.53.0