Commit 336092c0 authored by Viktor Rosendahl's avatar Viktor Rosendahl Committed by Tony Lindgren

lowmem: remove unecessary usage of proc_dointvec_minmax()

As far as I can understand, using proc_dointvec_minmax() instead of
proc_dointvec only makes sense if you supply the min and/or max values in the
extra1 and extra2 fields of the struct.
Signed-off-by: default avatarViktor Rosendahl <viktor.rosendahl@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent ad27614b
...@@ -69,7 +69,7 @@ static ctl_table lowmem_table[] = { ...@@ -69,7 +69,7 @@ static ctl_table lowmem_table[] = {
.maxlen = sizeof(unsigned int), .maxlen = sizeof(unsigned int),
.mode = 0644, .mode = 0644,
.child = NULL, .child = NULL,
.proc_handler = &proc_dointvec_minmax, .proc_handler = &proc_dointvec,
.strategy = &sysctl_intvec, .strategy = &sysctl_intvec,
}, { }, {
.ctl_name = VM_LOWMEM_ALLOWED_UIDS, .ctl_name = VM_LOWMEM_ALLOWED_UIDS,
...@@ -89,7 +89,7 @@ static ctl_table lowmem_table[] = { ...@@ -89,7 +89,7 @@ static ctl_table lowmem_table[] = {
.maxlen = sizeof(unsigned long), .maxlen = sizeof(unsigned long),
.mode = 0444, .mode = 0444,
.child = NULL, .child = NULL,
.proc_handler = &proc_dointvec_minmax, .proc_handler = &proc_dointvec,
.strategy = &sysctl_intvec, .strategy = &sysctl_intvec,
}, { }, {
.ctl_name = VM_LOWMEM_USED_PAGES, .ctl_name = VM_LOWMEM_USED_PAGES,
...@@ -98,7 +98,7 @@ static ctl_table lowmem_table[] = { ...@@ -98,7 +98,7 @@ static ctl_table lowmem_table[] = {
.maxlen = sizeof(long), .maxlen = sizeof(long),
.mode = 0444, .mode = 0444,
.child = NULL, .child = NULL,
.proc_handler = &proc_dointvec_minmax, .proc_handler = &proc_dointvec,
.strategy = &sysctl_intvec, .strategy = &sysctl_intvec,
}, { }, {
.ctl_name = 0 .ctl_name = 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment