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)
commit9a82782f8f58219d0c6dc5f0211ce301adf6c6f4
tree0caef745a8ef3f96b3e2444d00a5180669e5c469
parent3d67f2d7c0fb28b0eb6a6aa100b190526a971ad9
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