oom: make oom_reaper_list single linked
authorVladimir Davydov <vdavydov@virtuozzo.com>
Fri, 25 Mar 2016 21:20:39 +0000 (14:20 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Mar 2016 23:37:42 +0000 (16:37 -0700)
commit29c696e1c6eceb5db6b21f0c89495fcfcd40c0eb
treefe5a096de3c34d3fef0fcc40dd3fbc03a99599a1
parent855b018325737f7691f9b7d86339df40aa4e47c3
oom: make oom_reaper_list single linked

Entries are only added/removed from oom_reaper_list at head so we can
use a single linked list and hence save a word in task_struct.

Signed-off-by: Vladimir Davydov <vdavydov@virtuozzo.com>
Signed-off-by: Michal Hocko <mhocko@suse.com>
Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/sched.h
mm/oom_kill.c