mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 21:51:05 +00:00
oom: move constraints to enum
The OOM killer's CONSTRAINT definitions are really more appropriate in an enum, so define them in include/linux/oom.h. Cc: Andrea Arcangeli <andrea@suse.de> Acked-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
5a3135c2e7
commit
70e24bdf6d
2 changed files with 12 additions and 9 deletions
|
@ -11,6 +11,15 @@
|
|||
|
||||
#ifdef __KERNEL__
|
||||
|
||||
/*
|
||||
* Types of limitations to the nodes from which allocations may occur
|
||||
*/
|
||||
enum oom_constraint {
|
||||
CONSTRAINT_NONE,
|
||||
CONSTRAINT_CPUSET,
|
||||
CONSTRAINT_MEMORY_POLICY,
|
||||
};
|
||||
|
||||
extern void out_of_memory(struct zonelist *zonelist, gfp_t gfp_mask, int order);
|
||||
extern int register_oom_notifier(struct notifier_block *nb);
|
||||
extern int unregister_oom_notifier(struct notifier_block *nb);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue