From: Alexey Dobriyan Date: Wed, 17 Oct 2007 06:27:14 +0000 (-0700) Subject: Shrink struct task_struct::oomkilladj X-Git-Tag: v2.6.24-rc1~686 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=3befe7ceb8d39a56a9ea55dd2da8b4bd9ddcdd36;p=linux-2.6-omap-h63xx.git Shrink struct task_struct::oomkilladj oomkilladj is int, but values which can be assigned to it are -17, [-16, 15], thus fitting into s8. While patch itself doesn't help in making task_struct smaller, because of natural alignment of ->link_count, it will make picture clearer wrt futher task_struct reduction patches. My plan is to move ->fpu_counter and ->oomkilladj after ->ioprio filling hole on i386 and x86_64. But that's for later, because bloated distro configs need looking at as well. Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/sched.h b/include/linux/sched.h index cb952bc225e..87f2eb27ee1 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1010,7 +1010,7 @@ struct task_struct { * a short time */ unsigned char fpu_counter; - int oomkilladj; /* OOM kill score adjustment (bit shift). */ + s8 oomkilladj; /* OOM kill score adjustment (bit shift). */ char comm[TASK_COMM_LEN]; /* executable name excluding path - access with [gs]et_task_comm (which lock it with task_lock())