aboutsummaryrefslogtreecommitdiffstats
path: root/mm/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/util.c')
-rw-r--r--mm/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/util.c b/mm/util.c
index 8bf08b5b5760..4df23d64aac7 100644
--- a/mm/util.c
+++ b/mm/util.c
@@ -593,7 +593,7 @@ unsigned long vm_commit_limit(void)
593 if (sysctl_overcommit_kbytes) 593 if (sysctl_overcommit_kbytes)
594 allowed = sysctl_overcommit_kbytes >> (PAGE_SHIFT - 10); 594 allowed = sysctl_overcommit_kbytes >> (PAGE_SHIFT - 10);
595 else 595 else
596 allowed = ((totalram_pages - hugetlb_total_pages()) 596 allowed = ((totalram_pages() - hugetlb_total_pages())
597 * sysctl_overcommit_ratio / 100); 597 * sysctl_overcommit_ratio / 100);
598 allowed += total_swap_pages; 598 allowed += total_swap_pages;
599 599