mm/oom_kill.c: introduce is_sysrq_oom helper
authorYaowei Bai <bywxiaobai@163.com>
Sat, 7 Nov 2015 00:28:06 +0000 (16:28 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 7 Nov 2015 01:50:42 +0000 (17:50 -0800)
commitdb2a0dd7a43de595d3f0542986bb17ccb6cc364c
treefe0a8f9a78ee5cc49edb52324b21a0349d439f6c
parent5bc23a0cdee4a6757fcc2919eb26827fe11e3bee
mm/oom_kill.c: introduce is_sysrq_oom helper

Introduce is_sysrq_oom helper function indicating oom kill triggered
by sysrq to improve readability.

No functional changes.

Signed-off-by: Yaowei Bai <bywxiaobai@163.com>
Acked-by: David Rientjes <rientjes@google.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/oom_kill.c