mm, oom: change type of oom_score_adj to short
authorDavid Rientjes <rientjes@google.com>
Wed, 12 Dec 2012 00:02:54 +0000 (16:02 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 12 Dec 2012 01:22:27 +0000 (17:22 -0800)
commita9c58b907dbc6821533dfc295b63caf111ff1f16
treee50714c48de89400a02a8e92ef4e240c5206bbcc
parentfa264375175a382621c5344a6508e02ec4d1c3c0
mm, oom: change type of oom_score_adj to short

The maximum oom_score_adj is 1000 and the minimum oom_score_adj is -1000,
so this range can be represented by the signed short type with no
functional change.  The extra space this frees up in struct signal_struct
will be used for per-thread oom kill flags in the next patch.

Signed-off-by: David Rientjes <rientjes@google.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Cc: Anton Vorontsov <anton.vorontsov@linaro.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/staging/android/lowmemorykiller.c
fs/proc/base.c
include/linux/oom.h
include/linux/sched.h
include/trace/events/oom.h
include/trace/events/task.h
mm/ksm.c
mm/oom_kill.c
mm/swapfile.c