mmap: allow unlimited overcommit

Change-Id: Iba07b5c504b4a202cd163ce682f3fc72a31284a0
This commit is contained in:
Masamichi Takagi
2020-07-10 14:52:57 +09:00
parent d78a0fd05d
commit bafe540d86
4 changed files with 15 additions and 0 deletions

View File

@@ -72,4 +72,11 @@
#define MS_INVALIDATE 0x02
#define MS_SYNC 0x04
/* include/uapi/linux/mman.h */
#define OVERCOMMIT_GUESS 0
#define OVERCOMMIT_ALWAYS 1
#define OVERCOMMIT_NEVER 2
extern int sysctl_overcommit_memory;
#endif /* HEADER_MMAN_H */