diff options
Diffstat (limited to 'mm/swap.c')
-rw-r--r-- | mm/swap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1022,7 +1022,7 @@ EXPORT_SYMBOL(pagevec_lookup_range_nr_tag); | |||
1022 | */ | 1022 | */ |
1023 | void __init swap_setup(void) | 1023 | void __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) |