projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'acpi-video'
[cascardo/linux.git]
/
include
/
linux
/
oom.h
diff --git
a/include/linux/oom.h
b/include/linux/oom.h
index
da60007
..
4cd6267
100644
(file)
--- a/
include/linux/oom.h
+++ b/
include/linux/oom.h
@@
-82,6
+82,11
@@
static inline void oom_killer_enable(void)
oom_killer_disabled = false;
}
+static inline bool oom_gfp_allowed(gfp_t gfp_mask)
+{
+ return (gfp_mask & __GFP_FS) && !(gfp_mask & __GFP_NORETRY);
+}
+
extern struct task_struct *find_lock_task_mm(struct task_struct *p);
/* sysctls */