diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2007-10-17 02:27:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 11:42:53 -0400 |
commit | 3befe7ceb8d39a56a9ea55dd2da8b4bd9ddcdd36 (patch) | |
tree | f22b82dec859f5a6faeaf6508b9595c4753f955b | |
parent | 68a9bd0cd5824073e3232b102011ec568a517646 (diff) |
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 <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | include/linux/sched.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index cb952bc225e4..87f2eb27ee10 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1010,7 +1010,7 @@ struct task_struct { | |||
1010 | * a short time | 1010 | * a short time |
1011 | */ | 1011 | */ |
1012 | unsigned char fpu_counter; | 1012 | unsigned char fpu_counter; |
1013 | int oomkilladj; /* OOM kill score adjustment (bit shift). */ | 1013 | s8 oomkilladj; /* OOM kill score adjustment (bit shift). */ |
1014 | char comm[TASK_COMM_LEN]; /* executable name excluding path | 1014 | char comm[TASK_COMM_LEN]; /* executable name excluding path |
1015 | - access with [gs]et_task_comm (which lock | 1015 | - access with [gs]et_task_comm (which lock |
1016 | it with task_lock()) | 1016 | it with task_lock()) |