diff options
Diffstat (limited to 'mm/util.c')
| -rw-r--r-- | mm/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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 | ||
