Merge tag 'nfs-for-4.21-1' of git://git.linux-nfs.org/projects/anna/linux-nfs
[sfrench/cifs-2.6.git] / fs / nfs / write.c
index 76f33df51fbb71c2dc5a5ebbdd420c73a357cbc5..5a0bbf917a32d45935122f8480d5492b9c65999f 100644 (file)
@@ -2139,7 +2139,7 @@ int __init nfs_init_writepagecache(void)
         * This allows larger machines to have larger/more transfers.
         * Limit the default to 256M
         */
-       nfs_congestion_kb = (16*int_sqrt(totalram_pages)) << (PAGE_SHIFT-10);
+       nfs_congestion_kb = (16*int_sqrt(totalram_pages())) << (PAGE_SHIFT-10);
        if (nfs_congestion_kb > 256*1024)
                nfs_congestion_kb = 256*1024;