summaryrefslogtreecommitdiffstats
path: root/mm/swap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/swap.c')
-rw-r--r--mm/swap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/swap.c b/mm/swap.c
index 5d786019eab9..4d8a1f1afaab 100644
--- a/mm/swap.c
+++ b/mm/swap.c
@@ -1022,7 +1022,7 @@ EXPORT_SYMBOL(pagevec_lookup_range_nr_tag);
1022 */ 1022 */
1023void __init swap_setup(void) 1023void __init swap_setup(void)
1024{ 1024{
1025 unsigned long megs = totalram_pages >> (20 - PAGE_SHIFT); 1025 unsigned long megs = totalram_pages() >> (20 - PAGE_SHIFT);
1026 1026
1027 /* Use a smaller cluster for small-memory machines */ 1027 /* Use a smaller cluster for small-memory machines */
1028 if (megs < 16) 1028 if (megs < 16)