]> git.baikalelectronics.ru Git - kernel.git/commit
allow oom_adj of saintly processes
authorJoshua N Pritikin <jpritikin@pobox.com>
Sun, 6 May 2007 21:49:07 +0000 (14:49 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 7 May 2007 19:12:51 +0000 (12:12 -0700)
commitb6a6e619e7112dabb69d400e1b60348a0123d8a7
tree0caef745a8ef3f96b3e2444d00a5180669e5c469
parent727b715a9e266298ad335050fa6438987957078b
allow oom_adj of saintly processes

If the badness of a process is zero then oom_adj>0 has no effect.  This
patch makes sure that the oom_adj shift actually increases badness points
appropriately.

Signed-off-by: Joshua N. Pritikin <jpritikin@pobox.com>
Cc: Andrea Arcangeli <andrea@novell.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/oom_kill.c