summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndries E. Brouwer <andries.brouwer@cwi.nl>2004-09-29 18:41:37 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-09-29 18:41:37 -0700
commit237827056d5d9c86aab9e1f1d66eb4c9d0b6422c (patch)
tree09e71a62e689856f6e3c64cf98b0d93c258107ff /include/linux
parent339f152bbc5f29d103ce71e67fa5060e91f1c167 (diff)
[PATCH] overcommit symbolic constants
Played a bit with overcommit the past hour. Am not entirely satisfied with the no overcommit mode 2 - programs segfault when the system is close to that boundary. So, instead of the somewhat larger patch that I planned to send, just symbolic names for the modes.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mman.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mman.h b/include/linux/mman.h
index 07da84fcbd15..18a5689ef748 100644
--- a/include/linux/mman.h
+++ b/include/linux/mman.h
@@ -10,6 +10,9 @@
#define MREMAP_MAYMOVE 1
#define MREMAP_FIXED 2
+#define OVERCOMMIT_GUESS 0
+#define OVERCOMMIT_ALWAYS 1
+#define OVERCOMMIT_NEVER 2
extern int sysctl_overcommit_memory;
extern int sysctl_overcommit_ratio;
extern atomic_t vm_committed_space;