diff options
Diffstat (limited to 'mm/mmap.c')
-rw-r--r-- | mm/mmap.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -64,6 +64,13 @@ pgprot_t protection_map[16] = { | |||
64 | __S000, __S001, __S010, __S011, __S100, __S101, __S110, __S111 | 64 | __S000, __S001, __S010, __S011, __S100, __S101, __S110, __S111 |
65 | }; | 65 | }; |
66 | 66 | ||
67 | pgprot_t vm_get_page_prot(unsigned long vm_flags) | ||
68 | { | ||
69 | return protection_map[vm_flags & | ||
70 | (VM_READ|VM_WRITE|VM_EXEC|VM_SHARED)]; | ||
71 | } | ||
72 | EXPORT_SYMBOL(vm_get_page_prot); | ||
73 | |||
67 | int sysctl_overcommit_memory = OVERCOMMIT_GUESS; /* heuristic overcommit */ | 74 | int sysctl_overcommit_memory = OVERCOMMIT_GUESS; /* heuristic overcommit */ |
68 | int sysctl_overcommit_ratio = 50; /* default is 50% */ | 75 | int sysctl_overcommit_ratio = 50; /* default is 50% */ |
69 | int sysctl_max_map_count __read_mostly = DEFAULT_MAX_MAP_COUNT; | 76 | int sysctl_max_map_count __read_mostly = DEFAULT_MAX_MAP_COUNT; |