diff options
Diffstat (limited to 'mm/mmap.c')
-rw-r--r-- | mm/mmap.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1110,6 +1110,9 @@ munmap_back: | |||
1110 | if (!may_expand_vm(mm, len >> PAGE_SHIFT)) | 1110 | if (!may_expand_vm(mm, len >> PAGE_SHIFT)) |
1111 | return -ENOMEM; | 1111 | return -ENOMEM; |
1112 | 1112 | ||
1113 | if (flags & MAP_NORESERVE) | ||
1114 | vm_flags |= VM_NORESERVE; | ||
1115 | |||
1113 | if (accountable && (!(flags & MAP_NORESERVE) || | 1116 | if (accountable && (!(flags & MAP_NORESERVE) || |
1114 | sysctl_overcommit_memory == OVERCOMMIT_NEVER)) { | 1117 | sysctl_overcommit_memory == OVERCOMMIT_NEVER)) { |
1115 | if (vm_flags & VM_SHARED) { | 1118 | if (vm_flags & VM_SHARED) { |