mm: replace various uses of num_physpages by totalram_pages
[deliverable/linux.git] / mm / swap.c
index 4a8a59e671f7c0a53a1635537ec4a024b20ebd04..308e57d8d7ed9e256eb26be6b5478da06aac5d7f 100644 (file)
--- a/mm/swap.c
+++ b/mm/swap.c
@@ -496,7 +496,7 @@ EXPORT_SYMBOL(pagevec_lookup_tag);
  */
 void __init swap_setup(void)
 {
-       unsigned long megs = num_physpages >> (20 - PAGE_SHIFT);
+       unsigned long megs = totalram_pages >> (20 - PAGE_SHIFT);
 
 #ifdef CONFIG_SWAP
        bdi_init(swapper_space.backing_dev_info);
This page took 0.026005 seconds and 5 git commands to generate.