mm: convert totalram_pages and totalhigh_pages variables to atomic
[sfrench/cifs-2.6.git] / fs / nfsd / nfscache.c
index e2fe0e9ce0df08973e400db9754c842005ace49a..da52b594362a4d58299f8dbba503bde35e75fe20 100644 (file)
@@ -99,7 +99,7 @@ static unsigned int
 nfsd_cache_size_limit(void)
 {
        unsigned int limit;
-       unsigned long low_pages = totalram_pages - totalhigh_pages;
+       unsigned long low_pages = totalram_pages() - totalhigh_pages();
 
        limit = (16 * int_sqrt(low_pages)) << (PAGE_SHIFT-10);
        return min_t(unsigned int, limit, 256*1024);