diff options
Diffstat (limited to 'mm/util.c')
-rw-r--r-- | mm/util.c | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -7,9 +7,6 @@ #include <linux/security.h> #include <linux/swap.h> #include <linux/swapops.h> -#include <linux/mman.h> -#include <linux/hugetlb.h> - #include <asm/uaccess.h> #include "internal.h" @@ -401,16 +398,6 @@ struct address_space *page_mapping(struct page *page) return mapping; } -/* - * Committed memory limit enforced when OVERCOMMIT_NEVER policy is used - */ -unsigned long vm_commit_limit(void) -{ - return ((totalram_pages - hugetlb_total_pages()) - * sysctl_overcommit_ratio / 100) + total_swap_pages; -} - - /* Tracepoints definitions. */ EXPORT_TRACEPOINT_SYMBOL(kmalloc); EXPORT_TRACEPOINT_SYMBOL(kmem_cache_alloc); |