]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - net/dccp/proto.c
mm: replace various uses of num_physpages by totalram_pages
[mirror_ubuntu-hirsute-kernel.git] / net / dccp / proto.c
index 923db06c7e55e2851a84000799e5d3ec23dafe92..bc4467082a00830f98fdd0c3f0c6b4738a4c0590 100644 (file)
@@ -1049,10 +1049,10 @@ static int __init dccp_init(void)
         *
         * The methodology is similar to that of the buffer cache.
         */
-       if (num_physpages >= (128 * 1024))
-               goal = num_physpages >> (21 - PAGE_SHIFT);
+       if (totalram_pages >= (128 * 1024))
+               goal = totalram_pages >> (21 - PAGE_SHIFT);
        else
-               goal = num_physpages >> (23 - PAGE_SHIFT);
+               goal = totalram_pages >> (23 - PAGE_SHIFT);
 
        if (thash_entries)
                goal = (thash_entries *