mm, oom: pass an oom order of -1 when triggered by sysrq
authorDavid Rientjes <[email protected]>
Tue, 8 Sep 2015 22:00:39 +0000 (15:00 -0700)
committerLinus Torvalds <[email protected]>
Tue, 8 Sep 2015 22:35:28 +0000 (15:35 -0700)
commit54e9e29132d7caefcad470281cae06ac34a982c8
tree2c0fc45f174f03f4b38920a463546570325329a7
parent6e0fc46dc2152d3e2d25a5d5b640ae3586c247c6
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]>
drivers/tty/sysrq.c
include/linux/oom.h
mm/memcontrol.c
mm/oom_kill.c
mm/page_alloc.c