]> git.hungrycats.org Git - linux/commitdiff
[PATCH] compile fix for mm/init.c
authorIvan Kokshaysky <ink@jurassic.park.msu.ru>
Tue, 25 May 2004 01:42:55 +0000 (18:42 -0700)
committerRichard Henderson <rth@kanga.twiddle.home>
Tue, 25 May 2004 01:42:55 +0000 (18:42 -0700)
Fix another page->count reference (in addition to numa.c one
that I've sent earlier).

Ivan.

arch/alpha/mm/init.c

index d02ee459cc9d68781b40abfea68052c84554a677..e80c2f520bc9e0c2a1b62041e2246d897746b87d 100644 (file)
@@ -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);