Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Unified Diff: kernel/sysctl.c

Issue 4128001: CHROMIUM: vmscan: add min_filelist_kbytes sysctl for protecting the working set (Closed) Base URL: http://git.chromium.org/git/kernel.git
Patch Set: Handle cgroup case. Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/linux/mm.h ('k') | mm/vmscan.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: kernel/sysctl.c
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index b8bd058c5cd24b99cdbe899528e6794b81ce504a..478e6a6df24991075f91ae10cb3a959128c08633 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -1424,6 +1424,16 @@ static struct ctl_table vm_table[] = {
.extra2 = &one,
},
#endif
+ {
+ .ctl_name = CTL_UNNUMBERED,
+ .procname = "min_filelist_kbytes",
+ .data = &min_filelist_kbytes,
+ .maxlen = sizeof(min_filelist_kbytes),
+ .mode = 0644,
+ .proc_handler = &proc_dointvec,
+ .strategy = &sysctl_intvec,
+ .extra1 = &zero,
+ },
/*
* NOTE: do not add new entries to this table unless you have read
« no previous file with comments | « include/linux/mm.h ('k') | mm/vmscan.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698