You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
sysctl kernel: Remove binary sysctl logic
Now that sys_sysctl is a generic wrapper around /proc/sys .ctl_name and .strategy members of sysctl tables are dead code. Remove them. Cc: Ingo Molnar <mingo@elte.hu> Cc: Peter Zijlstra <peterz@infradead.org> Cc: David Howells <dhowells@redhat.com> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
This commit is contained in:
+1
-4
@@ -52,7 +52,6 @@ static const int slow_work_max_vslow = 99;
|
||||
|
||||
ctl_table slow_work_sysctls[] = {
|
||||
{
|
||||
.ctl_name = CTL_UNNUMBERED,
|
||||
.procname = "min-threads",
|
||||
.data = &slow_work_min_threads,
|
||||
.maxlen = sizeof(unsigned),
|
||||
@@ -62,7 +61,6 @@ ctl_table slow_work_sysctls[] = {
|
||||
.extra2 = &slow_work_max_threads,
|
||||
},
|
||||
{
|
||||
.ctl_name = CTL_UNNUMBERED,
|
||||
.procname = "max-threads",
|
||||
.data = &slow_work_max_threads,
|
||||
.maxlen = sizeof(unsigned),
|
||||
@@ -72,7 +70,6 @@ ctl_table slow_work_sysctls[] = {
|
||||
.extra2 = (void *) &slow_work_max_max_threads,
|
||||
},
|
||||
{
|
||||
.ctl_name = CTL_UNNUMBERED,
|
||||
.procname = "vslow-percentage",
|
||||
.data = &vslow_work_proportion,
|
||||
.maxlen = sizeof(unsigned),
|
||||
@@ -81,7 +78,7 @@ ctl_table slow_work_sysctls[] = {
|
||||
.extra1 = (void *) &slow_work_min_vslow,
|
||||
.extra2 = (void *) &slow_work_max_vslow,
|
||||
},
|
||||
{ .ctl_name = 0 }
|
||||
{}
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user