diff options
| author | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-06-26 01:31:38 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-06-26 01:31:38 -0400 |
| commit | 4854c7b27f0975a2b629f35ea3996d2968eb7c4f (patch) | |
| tree | 4102bdb70289764a2058aff0f907b13d7cf0e0d1 /include/linux/mman.h | |
| parent | 3cbd5b32cb625f5c0f1b1476d154fac873dd49ce (diff) | |
| parent | fcc18e83e1f6fd9fa6b333735bf0fcd530655511 (diff) | |
Merge rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'include/linux/mman.h')
| -rw-r--r-- | include/linux/mman.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/linux/mman.h b/include/linux/mman.h index 18a5689ef748..87920a0852a3 100644 --- a/include/linux/mman.h +++ b/include/linux/mman.h | |||
| @@ -1,10 +1,6 @@ | |||
| 1 | #ifndef _LINUX_MMAN_H | 1 | #ifndef _LINUX_MMAN_H |
| 2 | #define _LINUX_MMAN_H | 2 | #define _LINUX_MMAN_H |
| 3 | 3 | ||
| 4 | #include <linux/config.h> | ||
| 5 | #include <linux/mm.h> | ||
| 6 | |||
| 7 | #include <asm/atomic.h> | ||
| 8 | #include <asm/mman.h> | 4 | #include <asm/mman.h> |
| 9 | 5 | ||
| 10 | #define MREMAP_MAYMOVE 1 | 6 | #define MREMAP_MAYMOVE 1 |
| @@ -13,6 +9,12 @@ | |||
| 13 | #define OVERCOMMIT_GUESS 0 | 9 | #define OVERCOMMIT_GUESS 0 |
| 14 | #define OVERCOMMIT_ALWAYS 1 | 10 | #define OVERCOMMIT_ALWAYS 1 |
| 15 | #define OVERCOMMIT_NEVER 2 | 11 | #define OVERCOMMIT_NEVER 2 |
| 12 | |||
| 13 | #ifdef __KERNEL__ | ||
| 14 | #include <linux/mm.h> | ||
| 15 | |||
| 16 | #include <asm/atomic.h> | ||
| 17 | |||
| 16 | extern int sysctl_overcommit_memory; | 18 | extern int sysctl_overcommit_memory; |
| 17 | extern int sysctl_overcommit_ratio; | 19 | extern int sysctl_overcommit_ratio; |
| 18 | extern atomic_t vm_committed_space; | 20 | extern atomic_t vm_committed_space; |
| @@ -63,5 +65,5 @@ calc_vm_flag_bits(unsigned long flags) | |||
| 63 | _calc_vm_trans(flags, MAP_EXECUTABLE, VM_EXECUTABLE) | | 65 | _calc_vm_trans(flags, MAP_EXECUTABLE, VM_EXECUTABLE) | |
| 64 | _calc_vm_trans(flags, MAP_LOCKED, VM_LOCKED ); | 66 | _calc_vm_trans(flags, MAP_LOCKED, VM_LOCKED ); |
| 65 | } | 67 | } |
| 66 | 68 | #endif /* __KERNEL__ */ | |
| 67 | #endif /* _LINUX_MMAN_H */ | 69 | #endif /* _LINUX_MMAN_H */ |
