X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=include%2Flinux%2Foom.h;h=69864a547663ecda818ac17c171ed085dbe33c26;hb=2b7403035459c75e193c6b04a293e518a4212de0;hp=6adac113e96d29b5059ed65ac0522237c9b94388;hpb=33ce21d6a2491ef9adb8dc395e3f5bbbfcdc95b5;p=linux 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) * * Return 0 when the PF is safe VM_FAULT_SIGBUS otherwise. */ -static inline int check_stable_address_space(struct mm_struct *mm) +static inline vm_fault_t check_stable_address_space(struct mm_struct *mm) { if (unlikely(test_bit(MMF_UNSTABLE, &mm->flags))) return VM_FAULT_SIGBUS; return 0; } -void __oom_reap_task_mm(struct mm_struct *mm); +bool __oom_reap_task_mm(struct mm_struct *mm); extern unsigned long oom_badness(struct task_struct *p, struct mem_cgroup *memcg, const nodemask_t *nodemask,