projects
/
linux
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mm: Change return type int to vm_fault_t for fault handlers
[linux]
/
include
/
linux
/
oom.h
diff --git
a/include/linux/oom.h
b/include/linux/oom.h
index
6adac11
..
69864a5
100644
(file)
--- 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.
*/
*
* Return 0 when the PF is safe VM_FAULT_SIGBUS otherwise.
*/
-static inline
in
t 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;
}
{
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,
extern unsigned long oom_badness(struct task_struct *p,
struct mem_cgroup *memcg, const nodemask_t *nodemask,