diff options
| author | Chris Wright <chrisw@osdl.org> | 2004-06-17 17:57:07 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-06-17 17:57:07 -0700 |
| commit | 9d9f6e8b61400f3292be2a85b6aa84d3e47a60c8 (patch) | |
| tree | cfacbd604301f09fcf327a79f97a1f42e8341b00 /include/linux | |
| parent | faaa0febefc3de14da204284d79dd60c59a140b2 (diff) | |
[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 <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/sched.h | 2 |
1 files changed, 2 insertions, 0 deletions
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; |
