aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/mmap.c')
-rw-r--r--mm/mmap.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mm/mmap.c b/mm/mmap.c
index c1868ecdbc5f..c7ed061f4507 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -60,6 +60,13 @@ pgprot_t protection_map[16] = {
60 __S000, __S001, __S010, __S011, __S100, __S101, __S110, __S111 60 __S000, __S001, __S010, __S011, __S100, __S101, __S110, __S111
61}; 61};
62 62
63pgprot_t vm_get_page_prot(unsigned long vm_flags)
64{
65 return protection_map[vm_flags &
66 (VM_READ|VM_WRITE|VM_EXEC|VM_SHARED)];
67}
68EXPORT_SYMBOL(vm_get_page_prot);
69
63int sysctl_overcommit_memory = OVERCOMMIT_GUESS; /* heuristic overcommit */ 70int sysctl_overcommit_memory = OVERCOMMIT_GUESS; /* heuristic overcommit */
64int sysctl_overcommit_ratio = 50; /* default is 50% */ 71int sysctl_overcommit_ratio = 50; /* default is 50% */
65int sysctl_max_map_count __read_mostly = DEFAULT_MAX_MAP_COUNT; 72int sysctl_max_map_count __read_mostly = DEFAULT_MAX_MAP_COUNT;