]> git.karo-electronics.de Git - linux-beck.git/blobdiff - kernel/sysctl.c
pipe: limit the per-user amount of pages allocated in pipes
[linux-beck.git] / kernel / sysctl.c
index c810f8afdb7f79439737ee3b2528f7e2b10a233a..f6fd236429bd33519ff90cf261d6676862b48203 100644 (file)
@@ -1757,6 +1757,20 @@ static struct ctl_table fs_table[] = {
                .proc_handler   = &pipe_proc_fn,
                .extra1         = &pipe_min_size,
        },
+       {
+               .procname       = "pipe-user-pages-hard",
+               .data           = &pipe_user_pages_hard,
+               .maxlen         = sizeof(pipe_user_pages_hard),
+               .mode           = 0644,
+               .proc_handler   = proc_doulongvec_minmax,
+       },
+       {
+               .procname       = "pipe-user-pages-soft",
+               .data           = &pipe_user_pages_soft,
+               .maxlen         = sizeof(pipe_user_pages_soft),
+               .mode           = 0644,
+               .proc_handler   = proc_doulongvec_minmax,
+       },
        { }
 };