From 9d9f6e8b61400f3292be2a85b6aa84d3e47a60c8 Mon Sep 17 00:00:00 2001 From: Chris Wright Date: Thu, 17 Jun 2004 17:57:07 -0700 Subject: [PATCH] RLIM: add mq_bytes to user_struct Add mq_bytes field to user_struct, and make sure it's properly initialized. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- include/linux/sched.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/linux') diff --git a/include/linux/sched.h b/include/linux/sched.h index b81e02838224..0280fd490f73 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -315,6 +315,8 @@ struct user_struct { atomic_t processes; /* How many processes does this user have? */ atomic_t files; /* How many open files does this user have? */ atomic_t sigpending; /* How many pending signals does this user have? */ + /* protected by mq_lock */ + unsigned long mq_bytes; /* How many bytes can be allocated to mqueue? */ /* Hash table maintenance information */ struct list_head uidhash_list; -- cgit v1.2.3