mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
mm, oom: pass an oom order of -1 when triggered by sysrq
The force_kill member of struct oom_control isn't needed if an order of -1 is used instead. This is the same as order == -1 in struct compact_control which requires full memory compaction. This patch introduces no functional change. Signed-off-by: David Rientjes <[email protected]> Cc: Sergey Senozhatsky <[email protected]> Cc: Michal Hocko <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
6e0fc46dc2
commit
54e9e29132
5 changed files with 3 additions and 8 deletions
|
|
@ -358,8 +358,7 @@ static void moom_callback(struct work_struct *ignored)
|
|||
.zonelist = node_zonelist(first_memory_node, gfp_mask),
|
||||
.nodemask = NULL,
|
||||
.gfp_mask = gfp_mask,
|
||||
.order = 0,
|
||||
.force_kill = true,
|
||||
.order = -1,
|
||||
};
|
||||
|
||||
mutex_lock(&oom_lock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue