]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm, oom: change type of oom_score_adj to short
authorDavid Rientjes <rientjes@google.com>
Fri, 9 Nov 2012 03:04:33 +0000 (14:04 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 12 Nov 2012 04:17:12 +0000 (15:17 +1100)
commitc08ac1ea72b8208040dea0df21c280555d44917f
tree3fa2657854100f302c56886b45eded5b6ea1fa57
parentb90121b4b302bcda0dfcd1e6f1fe349cc322dbf9
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>
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