disable demand paging on ANONYMOUS mappings unless anon_on_demand kernel argument is passed

This commit is contained in:
Balazs Gerofi
2015-09-14 17:26:37 +09:00
parent 69f4b0e1ad
commit e1a01803d0
3 changed files with 12 additions and 1 deletions

View File

@@ -1078,7 +1078,9 @@ SYSCALL_DECLARE(mmap)
}
#endif
else {
vrflags |= VR_DEMAND_PAGING;
if (anon_on_demand) {
vrflags |= VR_DEMAND_PAGING;
}
}
}
else {