]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/linux/sched.h
pipe: limit the per-user amount of pages allocated in pipes
[karo-tx-linux.git] / include / linux / sched.h
index 21a6e9649012f487749b5214a7592508a5eaa319..1c0193baea2a57a53ed41a650df3717f4a0148ba 100644 (file)
@@ -831,6 +831,7 @@ struct user_struct {
 #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 */