aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/oom.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/oom.h')
-rw-r--r--include/linux/oom.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/oom.h b/include/linux/oom.h
index 6adac113e96d..69864a547663 100644
--- a/include/linux/oom.h
+++ b/include/linux/oom.h
@@ -88,14 +88,14 @@ static inline bool mm_is_oom_victim(struct mm_struct *mm)
88 * 88 *
89 * Return 0 when the PF is safe VM_FAULT_SIGBUS otherwise. 89 * Return 0 when the PF is safe VM_FAULT_SIGBUS otherwise.
90 */ 90 */
91static inline int check_stable_address_space(struct mm_struct *mm) 91static inline vm_fault_t check_stable_address_space(struct mm_struct *mm)
92{ 92{
93 if (unlikely(test_bit(MMF_UNSTABLE, &mm->flags))) 93 if (unlikely(test_bit(MMF_UNSTABLE, &mm->flags)))
94 return VM_FAULT_SIGBUS; 94 return VM_FAULT_SIGBUS;
95 return 0; 95 return 0;
96} 96}
97 97
98void __oom_reap_task_mm(struct mm_struct *mm); 98bool __oom_reap_task_mm(struct mm_struct *mm);
99 99
100extern unsigned long oom_badness(struct task_struct *p, 100extern unsigned long oom_badness(struct task_struct *p,
101 struct mem_cgroup *memcg, const nodemask_t *nodemask, 101 struct mem_cgroup *memcg, const nodemask_t *nodemask,