mm, oom: keep oom_adj under or at upper limit when printing

For oom_score_adj values in the range [942,999], the current
calculations will print 16 for oom_adj.  This patch simply limits the
output so output is inline with docs.

Signed-off-by: Charles Haithcock <>
Signed-off-by: Andrew Morton <>
Acked-by: Michal Hocko <>
Cc: Alexey Dobriyan <>
Signed-off-by: Linus Torvalds <>
1 file changed