pipe: limit the per-user amount of pages allocated in pipes
[linux-2.6-block.git] / include / linux / sched.h
index 4bae8ab3b89391f7d8d1566f56d3666d5d19058d..1589ddc88e388facc9acdf990d188d8cf7405330 100644 (file)
@@ -834,6 +834,8 @@ struct user_struct {
        unsigned long mq_bytes; /* How many bytes can be allocated to mqueue? */
 #endif
        unsigned long locked_shm; /* How many pages of mlocked shm ? */
+       unsigned long unix_inflight;    /* How many files in flight in unix sockets */
+       atomic_long_t pipe_bufs;  /* how many pages are allocated in pipe buffers */
 
 #ifdef CONFIG_KEYS
        struct key *uid_keyring;        /* UID specific keyring */