aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@sw.ru>2007-10-17 02:30:09 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-17 11:42:59 -0400
commit970a8645ca051225a32401e4c80b50fc0a49c081 (patch)
tree25600770b729500354d025f078d0ce9f655bdea4 /include/linux
parent40aeb400f68090f92010920ddf284b672a1461b8 (diff)
user.c: #ifdef ->mq_bytes
For those who deselect POSIX message queues. Reduces SLAB size of user_struct from 64 to 32 bytes here, SLUB size -- from 40 bytes to 32 bytes. [akpm@linux-foundation.org: fix build] Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru> 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 57166582a3f5..884699fa8c1f 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -518,8 +518,10 @@ struct user_struct {
518 atomic_t inotify_watches; /* How many inotify watches does this user have? */ 518 atomic_t inotify_watches; /* How many inotify watches does this user have? */
519 atomic_t inotify_devs; /* How many inotify devs does this user have opened? */ 519 atomic_t inotify_devs; /* How many inotify devs does this user have opened? */
520#endif 520#endif
521#ifdef CONFIG_POSIX_MQUEUE
521 /* protected by mq_lock */ 522 /* protected by mq_lock */
522 unsigned long mq_bytes; /* How many bytes can be allocated to mqueue? */ 523 unsigned long mq_bytes; /* How many bytes can be allocated to mqueue? */
524#endif
523 unsigned long locked_shm; /* How many pages of mlocked shm ? */ 525 unsigned long locked_shm; /* How many pages of mlocked shm ? */
524 526
525#ifdef CONFIG_KEYS 527#ifdef CONFIG_KEYS