diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 31c35a65fbb7823d258e90b3be0a4fa614073eb7..542611081c610f45df588deb427e357ddb65c92f 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -1468,6 +1468,24 @@ static struct ctl_table vm_table[] = { .extra1 = &zero, .extra2 = &one, }, + { + .procname = "cache_limit_mbytes", + .data = &vm_cache_limit_mbytes, + .maxlen = sizeof(vm_cache_limit_mbytes), + .mode = 0644, + .proc_handler = cache_limit_mbytes_sysctl_handler, + .extra1 = &vm_cache_limit_mbytes_min, + .extra2 = &vm_cache_limit_mbytes_max, + }, + { + .procname = "cache_limit_ratio", + .data = &vm_cache_limit_ratio, + .maxlen = sizeof(vm_cache_limit_ratio), + .mode = 0644, + .proc_handler = cache_limit_ratio_sysctl_handler, + .extra1 = &vm_cache_limit_ratio_min, + .extra2 = &vm_cache_limit_ratio_max, + }, #endif #ifdef CONFIG_HUGETLB_PAGE {