diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/oom.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/include/linux/oom.h b/include/linux/oom.h index b42b80f88c3a..d5771bed59c9 100644 --- a/include/linux/oom.h +++ b/include/linux/oom.h | |||
| @@ -72,22 +72,14 @@ extern enum oom_scan_t oom_scan_process_thread(struct task_struct *task, | |||
| 72 | unsigned long totalpages, const nodemask_t *nodemask, | 72 | unsigned long totalpages, const nodemask_t *nodemask, |
| 73 | bool force_kill); | 73 | bool force_kill); |
| 74 | 74 | ||
| 75 | extern void out_of_memory(struct zonelist *zonelist, gfp_t gfp_mask, | 75 | extern bool out_of_memory(struct zonelist *zonelist, gfp_t gfp_mask, |
| 76 | int order, nodemask_t *mask, bool force_kill); | 76 | int order, nodemask_t *mask, bool force_kill); |
| 77 | extern int register_oom_notifier(struct notifier_block *nb); | 77 | extern int register_oom_notifier(struct notifier_block *nb); |
| 78 | extern int unregister_oom_notifier(struct notifier_block *nb); | 78 | extern int unregister_oom_notifier(struct notifier_block *nb); |
| 79 | 79 | ||
| 80 | extern bool oom_killer_disabled; | 80 | extern bool oom_killer_disabled; |
| 81 | 81 | extern bool oom_killer_disable(void); | |
| 82 | static inline void oom_killer_disable(void) | 82 | extern void oom_killer_enable(void); |
| 83 | { | ||
| 84 | oom_killer_disabled = true; | ||
| 85 | } | ||
| 86 | |||
| 87 | static inline void oom_killer_enable(void) | ||
| 88 | { | ||
| 89 | oom_killer_disabled = false; | ||
| 90 | } | ||
| 91 | 83 | ||
| 92 | extern struct task_struct *find_lock_task_mm(struct task_struct *p); | 84 | extern struct task_struct *find_lock_task_mm(struct task_struct *p); |
| 93 | 85 | ||
