mm, oom: refactor oom_kill_process()