mm: Expose lazy vfree pages to control via sysctl
[linux-3.10.git] / kernel / sysctl.c
index 1a07798..cbbd2a0 100644 (file)
@@ -95,6 +95,7 @@
 #if defined(CONFIG_SYSCTL)
 
 /* External variables not in a header file. */
+extern int sysctl_lazy_vfree_pages;
 extern int sysctl_overcommit_memory;
 extern int sysctl_overcommit_ratio;
 extern int max_threads;
@@ -1069,6 +1070,13 @@ static struct ctl_table kern_table[] = {
 
 static struct ctl_table vm_table[] = {
        {
+               .procname       = "lazy_vfree_pages",
+               .data           = &sysctl_lazy_vfree_pages,
+               .maxlen         = sizeof(sysctl_lazy_vfree_pages),
+               .mode           = 0644,
+               .proc_handler   = proc_dointvec,
+       },
+       {
                .procname       = "overcommit_memory",
                .data           = &sysctl_overcommit_memory,
                .maxlen         = sizeof(sysctl_overcommit_memory),