aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@sw.ru>2007-10-17 02:27:30 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-17 11:42:55 -0400
commit42b2dd0a02c512cf59c96f5c227bf54bfe5bbf08 (patch)
treef9e4a572804897772d97e2db1ab0d2adcd28840c /include/linux
parentbcbba6c10ef6b14b0542d7ed7380e95168175818 (diff)
Shrink task_struct if CONFIG_FUTEX=n
robust_list, compat_robust_list, pi_state_list, pi_state_cache are really used if futexes are on. Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru> Acked-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sched.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 87f2eb27ee10..57166582a3f5 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1132,13 +1132,14 @@ struct task_struct {
1132 int cpuset_mems_generation; 1132 int cpuset_mems_generation;
1133 int cpuset_mem_spread_rotor; 1133 int cpuset_mem_spread_rotor;
1134#endif 1134#endif
1135#ifdef CONFIG_FUTEX
1135 struct robust_list_head __user *robust_list; 1136 struct robust_list_head __user *robust_list;
1136#ifdef CONFIG_COMPAT 1137#ifdef CONFIG_COMPAT
1137 struct compat_robust_list_head __user *compat_robust_list; 1138 struct compat_robust_list_head __user *compat_robust_list;
1138#endif 1139#endif
1139 struct list_head pi_state_list; 1140 struct list_head pi_state_list;
1140 struct futex_pi_state *pi_state_cache; 1141 struct futex_pi_state *pi_state_cache;
1141 1142#endif
1142 atomic_t fs_excl; /* holding fs exclusive resources */ 1143 atomic_t fs_excl; /* holding fs exclusive resources */
1143 struct rcu_head rcu; 1144 struct rcu_head rcu;
1144 1145