diff options
Diffstat (limited to 'include/linux/oom.h')
| -rw-r--r-- | include/linux/oom.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/oom.h b/include/linux/oom.h index da60007075b5..4cd62677feb9 100644 --- a/include/linux/oom.h +++ b/include/linux/oom.h | |||
| @@ -82,6 +82,11 @@ static inline void oom_killer_enable(void) | |||
| 82 | oom_killer_disabled = false; | 82 | oom_killer_disabled = false; |
| 83 | } | 83 | } |
| 84 | 84 | ||
| 85 | static inline bool oom_gfp_allowed(gfp_t gfp_mask) | ||
| 86 | { | ||
| 87 | return (gfp_mask & __GFP_FS) && !(gfp_mask & __GFP_NORETRY); | ||
| 88 | } | ||
| 89 | |||
| 85 | extern struct task_struct *find_lock_task_mm(struct task_struct *p); | 90 | extern struct task_struct *find_lock_task_mm(struct task_struct *p); |
| 86 | 91 | ||
| 87 | /* sysctls */ | 92 | /* sysctls */ |
