Commit ab09203e authored by Eric W. Biederman's avatar Eric W. Biederman

sysctl fs: Remove dead binary sysctl support

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: Jan Harkes <jaharkes@cs.cmu.edu>
Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
parent 2bc4657c
...@@ -17,7 +17,6 @@ static struct ctl_table_header *fs_table_header; ...@@ -17,7 +17,6 @@ static struct ctl_table_header *fs_table_header;
static ctl_table coda_table[] = { static ctl_table coda_table[] = {
{ {
.ctl_name = CTL_UNNUMBERED,
.procname = "timeout", .procname = "timeout",
.data = &coda_timeout, .data = &coda_timeout,
.maxlen = sizeof(int), .maxlen = sizeof(int),
...@@ -25,7 +24,6 @@ static ctl_table coda_table[] = { ...@@ -25,7 +24,6 @@ static ctl_table coda_table[] = {
.proc_handler = &proc_dointvec .proc_handler = &proc_dointvec
}, },
{ {
.ctl_name = CTL_UNNUMBERED,
.procname = "hard", .procname = "hard",
.data = &coda_hard, .data = &coda_hard,
.maxlen = sizeof(int), .maxlen = sizeof(int),
...@@ -33,7 +31,6 @@ static ctl_table coda_table[] = { ...@@ -33,7 +31,6 @@ static ctl_table coda_table[] = {
.proc_handler = &proc_dointvec .proc_handler = &proc_dointvec
}, },
{ {
.ctl_name = CTL_UNNUMBERED,
.procname = "fake_statfs", .procname = "fake_statfs",
.data = &coda_fake_statfs, .data = &coda_fake_statfs,
.maxlen = sizeof(int), .maxlen = sizeof(int),
...@@ -46,7 +43,6 @@ static ctl_table coda_table[] = { ...@@ -46,7 +43,6 @@ static ctl_table coda_table[] = {
#ifdef CONFIG_SYSCTL #ifdef CONFIG_SYSCTL
static ctl_table fs_table[] = { static ctl_table fs_table[] = {
{ {
.ctl_name = CTL_UNNUMBERED,
.procname = "coda", .procname = "coda",
.mode = 0555, .mode = 0555,
.child = coda_table .child = coda_table
......
...@@ -254,7 +254,7 @@ ctl_table epoll_table[] = { ...@@ -254,7 +254,7 @@ ctl_table epoll_table[] = {
.proc_handler = &proc_dointvec_minmax, .proc_handler = &proc_dointvec_minmax,
.extra1 = &zero, .extra1 = &zero,
}, },
{ .ctl_name = 0 } { }
}; };
#endif /* CONFIG_SYSCTL */ #endif /* CONFIG_SYSCTL */
......
...@@ -371,7 +371,6 @@ EXPORT_SYMBOL_GPL(lockd_down); ...@@ -371,7 +371,6 @@ EXPORT_SYMBOL_GPL(lockd_down);
static ctl_table nlm_sysctls[] = { static ctl_table nlm_sysctls[] = {
{ {
.ctl_name = CTL_UNNUMBERED,
.procname = "nlm_grace_period", .procname = "nlm_grace_period",
.data = &nlm_grace_period, .data = &nlm_grace_period,
.maxlen = sizeof(unsigned long), .maxlen = sizeof(unsigned long),
...@@ -381,7 +380,6 @@ static ctl_table nlm_sysctls[] = { ...@@ -381,7 +380,6 @@ static ctl_table nlm_sysctls[] = {
.extra2 = (unsigned long *) &nlm_grace_period_max, .extra2 = (unsigned long *) &nlm_grace_period_max,
}, },
{ {
.ctl_name = CTL_UNNUMBERED,
.procname = "nlm_timeout", .procname = "nlm_timeout",
.data = &nlm_timeout, .data = &nlm_timeout,
.maxlen = sizeof(unsigned long), .maxlen = sizeof(unsigned long),
...@@ -391,7 +389,6 @@ static ctl_table nlm_sysctls[] = { ...@@ -391,7 +389,6 @@ static ctl_table nlm_sysctls[] = {
.extra2 = (unsigned long *) &nlm_timeout_max, .extra2 = (unsigned long *) &nlm_timeout_max,
}, },
{ {
.ctl_name = CTL_UNNUMBERED,
.procname = "nlm_udpport", .procname = "nlm_udpport",
.data = &nlm_udpport, .data = &nlm_udpport,
.maxlen = sizeof(int), .maxlen = sizeof(int),
...@@ -401,7 +398,6 @@ static ctl_table nlm_sysctls[] = { ...@@ -401,7 +398,6 @@ static ctl_table nlm_sysctls[] = {
.extra2 = (int *) &nlm_port_max, .extra2 = (int *) &nlm_port_max,
}, },
{ {
.ctl_name = CTL_UNNUMBERED,
.procname = "nlm_tcpport", .procname = "nlm_tcpport",
.data = &nlm_tcpport, .data = &nlm_tcpport,
.maxlen = sizeof(int), .maxlen = sizeof(int),
...@@ -411,7 +407,6 @@ static ctl_table nlm_sysctls[] = { ...@@ -411,7 +407,6 @@ static ctl_table nlm_sysctls[] = {
.extra2 = (int *) &nlm_port_max, .extra2 = (int *) &nlm_port_max,
}, },
{ {
.ctl_name = CTL_UNNUMBERED,
.procname = "nsm_use_hostnames", .procname = "nsm_use_hostnames",
.data = &nsm_use_hostnames, .data = &nsm_use_hostnames,
.maxlen = sizeof(int), .maxlen = sizeof(int),
...@@ -419,34 +414,31 @@ static ctl_table nlm_sysctls[] = { ...@@ -419,34 +414,31 @@ static ctl_table nlm_sysctls[] = {
.proc_handler = &proc_dointvec, .proc_handler = &proc_dointvec,
}, },
{ {
.ctl_name = CTL_UNNUMBERED,
.procname = "nsm_local_state", .procname = "nsm_local_state",
.data = &nsm_local_state, .data = &nsm_local_state,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler = &proc_dointvec, .proc_handler = &proc_dointvec,
}, },
{ .ctl_name = 0 } { }
}; };
static ctl_table nlm_sysctl_dir[] = { static ctl_table nlm_sysctl_dir[] = {
{ {
.ctl_name = CTL_UNNUMBERED,
.procname = "nfs", .procname = "nfs",
.mode = 0555, .mode = 0555,
.child = nlm_sysctls, .child = nlm_sysctls,
}, },
{ .ctl_name = 0 } { }
}; };
static ctl_table nlm_sysctl_root[] = { static ctl_table nlm_sysctl_root[] = {
{ {
.ctl_name = CTL_FS,
.procname = "fs", .procname = "fs",
.mode = 0555, .mode = 0555,
.child = nlm_sysctl_dir, .child = nlm_sysctl_dir,
}, },
{ .ctl_name = 0 } { }
}; };
#endif /* CONFIG_SYSCTL */ #endif /* CONFIG_SYSCTL */
......
...@@ -22,7 +22,6 @@ static struct ctl_table_header *nfs_callback_sysctl_table; ...@@ -22,7 +22,6 @@ static struct ctl_table_header *nfs_callback_sysctl_table;
static ctl_table nfs_cb_sysctls[] = { static ctl_table nfs_cb_sysctls[] = {
#ifdef CONFIG_NFS_V4 #ifdef CONFIG_NFS_V4
{ {
.ctl_name = CTL_UNNUMBERED,
.procname = "nfs_callback_tcpport", .procname = "nfs_callback_tcpport",
.data = &nfs_callback_set_tcpport, .data = &nfs_callback_set_tcpport,
.maxlen = sizeof(int), .maxlen = sizeof(int),
...@@ -32,53 +31,46 @@ static ctl_table nfs_cb_sysctls[] = { ...@@ -32,53 +31,46 @@ static ctl_table nfs_cb_sysctls[] = {
.extra2 = (int *)&nfs_set_port_max, .extra2 = (int *)&nfs_set_port_max,
}, },
{ {
.ctl_name = CTL_UNNUMBERED,
.procname = "idmap_cache_timeout", .procname = "idmap_cache_timeout",
.data = &nfs_idmap_cache_timeout, .data = &nfs_idmap_cache_timeout,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler = &proc_dointvec_jiffies, .proc_handler = &proc_dointvec_jiffies,
.strategy = &sysctl_jiffies,
}, },
#endif #endif
{ {
.ctl_name = CTL_UNNUMBERED,
.procname = "nfs_mountpoint_timeout", .procname = "nfs_mountpoint_timeout",
.data = &nfs_mountpoint_expiry_timeout, .data = &nfs_mountpoint_expiry_timeout,
.maxlen = sizeof(nfs_mountpoint_expiry_timeout), .maxlen = sizeof(nfs_mountpoint_expiry_timeout),
.mode = 0644, .mode = 0644,
.proc_handler = &proc_dointvec_jiffies, .proc_handler = &proc_dointvec_jiffies,
.strategy = &sysctl_jiffies,
}, },
{ {
.ctl_name = CTL_UNNUMBERED,
.procname = "nfs_congestion_kb", .procname = "nfs_congestion_kb",
.data = &nfs_congestion_kb, .data = &nfs_congestion_kb,
.maxlen = sizeof(nfs_congestion_kb), .maxlen = sizeof(nfs_congestion_kb),
.mode = 0644, .mode = 0644,
.proc_handler = &proc_dointvec, .proc_handler = &proc_dointvec,
}, },
{ .ctl_name = 0 } { }
}; };
static ctl_table nfs_cb_sysctl_dir[] = { static ctl_table nfs_cb_sysctl_dir[] = {
{ {
.ctl_name = CTL_UNNUMBERED,
.procname = "nfs", .procname = "nfs",
.mode = 0555, .mode = 0555,
.child = nfs_cb_sysctls, .child = nfs_cb_sysctls,
}, },
{ .ctl_name = 0 } { }
}; };
static ctl_table nfs_cb_sysctl_root[] = { static ctl_table nfs_cb_sysctl_root[] = {
{ {
.ctl_name = CTL_FS,
.procname = "fs", .procname = "fs",
.mode = 0555, .mode = 0555,
.child = nfs_cb_sysctl_dir, .child = nfs_cb_sysctl_dir,
}, },
{ .ctl_name = 0 } { }
}; };
int nfs_register_sysctl(void) int nfs_register_sysctl(void)
......
...@@ -69,36 +69,30 @@ static int zero; ...@@ -69,36 +69,30 @@ static int zero;
ctl_table inotify_table[] = { ctl_table inotify_table[] = {
{ {
.ctl_name = INOTIFY_MAX_USER_INSTANCES,
.procname = "max_user_instances", .procname = "max_user_instances",
.data = &inotify_max_user_instances, .data = &inotify_max_user_instances,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler = &proc_dointvec_minmax, .proc_handler = &proc_dointvec_minmax,
.strategy = &sysctl_intvec,
.extra1 = &zero, .extra1 = &zero,
}, },
{ {
.ctl_name = INOTIFY_MAX_USER_WATCHES,
.procname = "max_user_watches", .procname = "max_user_watches",
.data = &inotify_max_user_watches, .data = &inotify_max_user_watches,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler = &proc_dointvec_minmax, .proc_handler = &proc_dointvec_minmax,
.strategy = &sysctl_intvec,
.extra1 = &zero, .extra1 = &zero,
}, },
{ {
.ctl_name = INOTIFY_MAX_QUEUED_EVENTS,
.procname = "max_queued_events", .procname = "max_queued_events",
.data = &inotify_max_queued_events, .data = &inotify_max_queued_events,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler = &proc_dointvec_minmax, .proc_handler = &proc_dointvec_minmax,
.strategy = &sysctl_intvec,
.extra1 = &zero .extra1 = &zero
}, },
{ .ctl_name = 0 } { }
}; };
#endif /* CONFIG_SYSCTL */ #endif /* CONFIG_SYSCTL */
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
/* Definition of the ntfs sysctl. */ /* Definition of the ntfs sysctl. */
static ctl_table ntfs_sysctls[] = { static ctl_table ntfs_sysctls[] = {
{ {
.ctl_name = CTL_UNNUMBERED, /* Binary and text IDs. */
.procname = "ntfs-debug", .procname = "ntfs-debug",
.data = &debug_msgs, /* Data pointer and size. */ .data = &debug_msgs, /* Data pointer and size. */
.maxlen = sizeof(debug_msgs), .maxlen = sizeof(debug_msgs),
...@@ -49,7 +48,6 @@ static ctl_table ntfs_sysctls[] = { ...@@ -49,7 +48,6 @@ static ctl_table ntfs_sysctls[] = {
/* Define the parent directory /proc/sys/fs. */ /* Define the parent directory /proc/sys/fs. */
static ctl_table sysctls_root[] = { static ctl_table sysctls_root[] = {
{ {
.ctl_name = CTL_FS,
.procname = "fs", .procname = "fs",
.mode = 0555, .mode = 0555,
.child = ntfs_sysctls .child = ntfs_sysctls
......
...@@ -620,51 +620,46 @@ error: ...@@ -620,51 +620,46 @@ error:
static ctl_table ocfs2_nm_table[] = { static ctl_table ocfs2_nm_table[] = {
{ {
.ctl_name = 1,
.procname = "hb_ctl_path", .procname = "hb_ctl_path",
.data = ocfs2_hb_ctl_path, .data = ocfs2_hb_ctl_path,
.maxlen = OCFS2_MAX_HB_CTL_PATH, .maxlen = OCFS2_MAX_HB_CTL_PATH,
.mode = 0644, .mode = 0644,
.proc_handler = &proc_dostring, .proc_handler = &proc_dostring,
.strategy = &sysctl_string,
}, },
{ .ctl_name = 0 } { }
}; };
static ctl_table ocfs2_mod_table[] = { static ctl_table ocfs2_mod_table[] = {
{ {
.ctl_name = FS_OCFS2_NM,
.procname = "nm", .procname = "nm",
.data = NULL, .data = NULL,
.maxlen = 0, .maxlen = 0,
.mode = 0555, .mode = 0555,
.child = ocfs2_nm_table .child = ocfs2_nm_table
}, },
{ .ctl_name = 0} { }
}; };
static ctl_table ocfs2_kern_table[] = { static ctl_table ocfs2_kern_table[] = {
{ {
.ctl_name = FS_OCFS2,
.procname = "ocfs2", .procname = "ocfs2",
.data = NULL, .data = NULL,
.maxlen = 0, .maxlen = 0,
.mode = 0555, .mode = 0555,
.child = ocfs2_mod_table .child = ocfs2_mod_table
}, },
{ .ctl_name = 0} { }
}; };
static ctl_table ocfs2_root_table[] = { static ctl_table ocfs2_root_table[] = {
{ {
.ctl_name = CTL_FS,
.procname = "fs", .procname = "fs",
.data = NULL, .data = NULL,
.maxlen = 0, .maxlen = 0,
.mode = 0555, .mode = 0555,
.child = ocfs2_kern_table .child = ocfs2_kern_table
}, },
{ .ctl_name = 0 } { }
}; };
static struct ctl_table_header *ocfs2_table_header = NULL; static struct ctl_table_header *ocfs2_table_header = NULL;
......
...@@ -2473,7 +2473,6 @@ const struct quotactl_ops vfs_quotactl_ops = { ...@@ -2473,7 +2473,6 @@ const struct quotactl_ops vfs_quotactl_ops = {
static ctl_table fs_dqstats_table[] = { static ctl_table fs_dqstats_table[] = {
{ {
.ctl_name = FS_DQ_LOOKUPS,
.procname = "lookups", .procname = "lookups",
.data = &dqstats.lookups, .data = &dqstats.lookups,
.maxlen = sizeof(int), .maxlen = sizeof(int),
...@@ -2481,7 +2480,6 @@ static ctl_table fs_dqstats_table[] = { ...@@ -2481,7 +2480,6 @@ static ctl_table fs_dqstats_table[] = {
.proc_handler = &proc_dointvec, .proc_handler = &proc_dointvec,
}, },
{ {
.ctl_name = FS_DQ_DROPS,
.procname = "drops", .procname = "drops",
.data = &dqstats.drops, .data = &dqstats.drops,
.maxlen = sizeof(int), .maxlen = sizeof(int),
...@@ -2489,7 +2487,6 @@ static ctl_table fs_dqstats_table[] = { ...@@ -2489,7 +2487,6 @@ static ctl_table fs_dqstats_table[] = {
.proc_handler = &proc_dointvec, .proc_handler = &proc_dointvec,
}, },
{ {
.ctl_name = FS_DQ_READS,
.procname = "reads", .procname = "reads",
.data = &dqstats.reads, .data = &dqstats.reads,
.maxlen = sizeof(int), .maxlen = sizeof(int),
...@@ -2497,7 +2494,6 @@ static ctl_table fs_dqstats_table[] = { ...@@ -2497,7 +2494,6 @@ static ctl_table fs_dqstats_table[] = {
.proc_handler = &proc_dointvec, .proc_handler = &proc_dointvec,
}, },
{ {
.ctl_name = FS_DQ_WRITES,
.procname = "writes", .procname = "writes",
.data = &dqstats.writes, .data = &dqstats.writes,
.maxlen = sizeof(int), .maxlen = sizeof(int),
...@@ -2505,7 +2501,6 @@ static ctl_table fs_dqstats_table[] = { ...@@ -2505,7 +2501,6 @@ static ctl_table fs_dqstats_table[] = {
.proc_handler = &proc_dointvec, .proc_handler = &proc_dointvec,
}, },
{ {
.ctl_name = FS_DQ_CACHE_HITS,
.procname = "cache_hits", .procname = "cache_hits",
.data = &dqstats.cache_hits, .data = &dqstats.cache_hits,
.maxlen = sizeof(int), .maxlen = sizeof(int),
...@@ -2513,7 +2508,6 @@ static ctl_table fs_dqstats_table[] = { ...@@ -2513,7 +2508,6 @@ static ctl_table fs_dqstats_table[] = {
.proc_handler = &proc_dointvec, .proc_handler = &proc_dointvec,
}, },
{ {
.ctl_name = FS_DQ_ALLOCATED,
.procname = "allocated_dquots", .procname = "allocated_dquots",
.data = &dqstats.allocated_dquots, .data = &dqstats.allocated_dquots,
.maxlen = sizeof(int), .maxlen = sizeof(int),
...@@ -2521,7 +2515,6 @@ static ctl_table fs_dqstats_table[] = { ...@@ -2521,7 +2515,6 @@ static ctl_table fs_dqstats_table[] = {
.proc_handler = &proc_dointvec, .proc_handler = &proc_dointvec,
}, },
{ {
.ctl_name = FS_DQ_FREE,
.procname = "free_dquots", .procname = "free_dquots",
.data = &dqstats.free_dquots, .data = &dqstats.free_dquots,
.maxlen = sizeof(int), .maxlen = sizeof(int),
...@@ -2529,7 +2522,6 @@ static ctl_table fs_dqstats_table[] = { ...@@ -2529,7 +2522,6 @@ static ctl_table fs_dqstats_table[] = {
.proc_handler = &proc_dointvec, .proc_handler = &proc_dointvec,
}, },
{ {
.ctl_name = FS_DQ_SYNCS,
.procname = "syncs", .procname = "syncs",
.data = &dqstats.syncs, .data = &dqstats.syncs,
.maxlen = sizeof(int), .maxlen = sizeof(int),
...@@ -2538,7 +2530,6 @@ static ctl_table fs_dqstats_table[] = { ...@@ -2538,7 +2530,6 @@ static ctl_table fs_dqstats_table[] = {
}, },
#ifdef CONFIG_PRINT_QUOTA_WARNING #ifdef CONFIG_PRINT_QUOTA_WARNING
{ {
.ctl_name = FS_DQ_WARNINGS,
.procname = "warnings", .procname = "warnings",
.data = &flag_print_warnings, .data = &flag_print_warnings,
.maxlen = sizeof(int), .maxlen = sizeof(int),
...@@ -2546,27 +2537,25 @@ static ctl_table fs_dqstats_table[] = { ...@@ -2546,27 +2537,25 @@ static ctl_table fs_dqstats_table[] = {
.proc_handler = &proc_dointvec, .proc_handler = &proc_dointvec,
}, },
#endif #endif
{ .ctl_name = 0 }, { },
}; };
static ctl_table fs_table[] = { static ctl_table fs_table[] = {
{ {
.ctl_name = FS_DQSTATS,
.procname = "quota", .procname = "quota",
.mode = 0555, .mode = 0555,
.child = fs_dqstats_table, .child = fs_dqstats_table,
}, },
{ .ctl_name = 0 }, { },
}; };
static ctl_table sys_table[] = { static ctl_table sys_table[] = {
{ {
.ctl_name = CTL_FS,
.procname = "fs", .procname = "fs",
.mode = 0555, .mode = 0555,
.child = fs_table, .child = fs_table,
}, },
{ .ctl_name = 0 }, { },
}; };
static int __init dquot_init(void) static int __init dquot_init(void)
......
...@@ -55,170 +55,140 @@ xfs_stats_clear_proc_handler( ...@@ -55,170 +55,140 @@ xfs_stats_clear_proc_handler(
static ctl_table xfs_table[] = { static ctl_table xfs_table[] = {
{ {
.ctl_name = XFS_SGID_INHERIT,
.procname = "irix_sgid_inherit", .procname = "irix_sgid_inherit",
.data = &xfs_params.sgid_inherit.val, .data = &xfs_params.sgid_inherit.val,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler = &proc_dointvec_minmax, .proc_handler = &proc_dointvec_minmax,
.strategy = &sysctl_intvec,
.extra1 = &xfs_params.sgid_inherit.min, .extra1 = &xfs_params.sgid_inherit.min,
.extra2 = &xfs_params.sgid_inherit.max .extra2 = &xfs_params.sgid_inherit.max
}, },
{ {
.ctl_name = XFS_SYMLINK_MODE,
.procname = "irix_symlink_mode", .procname = "irix_symlink_mode",
.data = &xfs_params.symlink_mode.val, .data = &xfs_params.symlink_mode.val,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler = &proc_dointvec_minmax, .proc_handler = &proc_dointvec_minmax,
.strategy = &sysctl_intvec,
.extra1 = &xfs_params.symlink_mode.min, .extra1 = &xfs_params.symlink_mode.min,
.extra2 = &xfs_params.symlink_mode.max .extra2 = &xfs_params.symlink_mode.max
}, },
{ {
.ctl_name = XFS_PANIC_MASK,
.procname = "panic_mask", .procname = "panic_mask",
.data = &xfs_params.panic_mask.val, .data = &xfs_params.panic_mask.val,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler = &proc_dointvec_minmax, .proc_handler = &proc_dointvec_minmax,
.strategy = &sysctl_intvec,
.extra1 = &xfs_params.panic_mask.min, .extra1 = &xfs_params.panic_mask.min,
.extra2 = &xfs_params.panic_mask.max .extra2 = &xfs_params.panic_mask.max
}, },
{ {
.ctl_name = XFS_ERRLEVEL,
.procname = "error_level", .procname = "error_level",
.data = &xfs_params.error_level.val, .data = &xfs_params.error_level.val,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler = &proc_dointvec_minmax, .proc_handler = &proc_dointvec_minmax,
.strategy = &sysctl_intvec,
.extra1 = &xfs_params.error_level.min, .extra1 = &xfs_params.error_level.min,
.extra2 = &xfs_params.error_level.max .extra2 = &xfs_params.error_level.max
}, },
{ {
.ctl_name = XFS_SYNCD_TIMER,
.procname = "xfssyncd_centisecs", .procname = "xfssyncd_centisecs",
.data = &xfs_params.syncd_timer.val, .data = &xfs_params.syncd_timer.val,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler = &proc_dointvec_minmax, .proc_handler = &proc_dointvec_minmax,
.strategy = &sysctl_intvec,
.extra1 = &xfs_params.syncd_timer.min, .extra1 = &xfs_params.syncd_timer.min,
.extra2 = &xfs_params.syncd_timer.max .extra2 = &xfs_params.syncd_timer.max
}, },
{ {
.ctl_name = XFS_INHERIT_SYNC,
.procname = "inherit_sync", .procname = "inherit_sync",
.data = &xfs_params.inherit_sync.val, .data = &xfs_params.inherit_sync.val,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler = &proc_dointvec_minmax, .proc_handler = &proc_dointvec_minmax,
.strategy = &sysctl_intvec,
.extra1 = &xfs_params.inherit_sync.min, .extra1 = &xfs_params.inherit_sync.min,
.extra2 = &xfs_params.inherit_sync.max .extra2 = &xfs_params.inherit_sync.max
}, },
{ {
.ctl_name = XFS_INHERIT_NODUMP,
.procname = "inherit_nodump", .procname = "inherit_nodump",
.data = &xfs_params.inherit_nodump.val, .data = &xfs_params.inherit_nodump.val,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler = &proc_dointvec_minmax, .proc_handler = &proc_dointvec_minmax,
.strategy = &sysctl_intvec,
.extra1 = &xfs_params.inherit_nodump.min, .extra1 = &xfs_params.inherit_nodump.min,
.extra2 = &xfs_params.inherit_nodump.max .extra2 = &xfs_params.inherit_nodump.max
}, },
{ {
.ctl_name = XFS_INHERIT_NOATIME,
.procname = "inherit_noatime", .procname = "inherit_noatime",
.data = &xfs_params.inherit_noatim.val, .data = &xfs_params.inherit_noatim.val,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler = &proc_dointvec_minmax, .proc_handler = &proc_dointvec_minmax,
.strategy = &sysctl_intvec,
.extra1 = &xfs_params.inherit_noatim.min, .extra1 = &xfs_params.inherit_noatim.min,
.extra2 = &xfs_params.inherit_noatim.max .extra2 = &xfs_params.inherit_noatim.max
}, },
{ {
.ctl_name = XFS_BUF_TIMER,
.procname = "xfsbufd_centisecs", .procname = "xfsbufd_centisecs",
.data = &xfs_params.xfs_buf_timer.val, .data = &xfs_params.xfs_buf_timer.val,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler = &proc_dointvec_minmax, .proc_handler = &proc_dointvec_minmax,
.strategy = &sysctl_intvec,
.extra1 = &xfs_params.xfs_buf_timer.min, .extra1 = &xfs_params.xfs_buf_timer.min,
.extra2 = &xfs_params.xfs_buf_timer.max .extra2 = &xfs_params.xfs_buf_timer.max
}, },
{ {
.ctl_name = XFS_BUF_AGE,
.procname = "age_buffer_centisecs", .procname = "age_buffer_centisecs",
.data = &xfs_params.xfs_buf_age.val, .data = &xfs_params.xfs_buf_age.val,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler = &proc_dointvec_minmax, .proc_handler = &proc_dointvec_minmax,
.strategy = &sysctl_intvec,
.extra1 = &xfs_params.xfs_buf_age.min, .extra1 = &xfs_params.xfs_buf_age.min,
.extra2 = &xfs_params.xfs_buf_age.max .extra2 = &xfs_params.xfs_buf_age.max
}, },
{ {
.ctl_name = XFS_INHERIT_NOSYM,
.procname = "inherit_nosymlinks", .procname = "inherit_nosymlinks",
.data = &xfs_params.inherit_nosym.val, .data = &xfs_params.inherit_nosym.val,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler = &proc_dointvec_minmax, .proc_handler = &proc_dointvec_minmax,
.strategy = &sysctl_intvec,
.extra1 = &xfs_params.inherit_nosym.min, .extra1 = &xfs_params.inherit_nosym.min,
.extra2 = &xfs_params.inherit_nosym.max .extra2 = &xfs_params.inherit_nosym.max
}, },
{ {
.ctl_name = XFS_ROTORSTEP,
.procname = "rotorstep", .procname = "rotorstep",
.data = &xfs_params.rotorstep.val, .data = &xfs_params.rotorstep.val,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler = &proc_dointvec_minmax, .proc_handler = &proc_dointvec_minmax,
.strategy = &sysctl_intvec,
.extra1 = &xfs_params.rotorstep.min, .extra1 = &xfs_params.rotorstep.min,
.extra2 = &xfs_params.rotorstep.max .extra2 = &xfs_params.rotorstep.max
}, },
{ {
.ctl_name = XFS_INHERIT_NODFRG,
.procname = "inherit_nodefrag", .procname = "inherit_nodefrag",
.data = &xfs_params.inherit_nodfrg.val, .data = &xfs_params.inherit_nodfrg.val,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler = &proc_dointvec_minmax, .proc_handler = &proc_dointvec_minmax,
.strategy = &sysctl_intvec,
.extra1 = &xfs_params.inherit_nodfrg.min, .extra1 = &xfs_params.inherit_nodfrg.min,
.extra2 = &xfs_params.inherit_nodfrg.max .extra2 = &xfs_params.inherit_nodfrg.max
}, },
{ {
.ctl_name = XFS_FILESTREAM_TIMER,
.procname = "filestream_centisecs", .procname = "filestream_centisecs",
.data = &xfs_params.fstrm_timer.val, .data = &xfs_params.fstrm_timer.val,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler = &proc_dointvec_minmax, .proc_handler = &proc_dointvec_minmax,
.strategy = &sysctl_intvec,
.extra1 = &xfs_params.fstrm_timer.min, .extra1 = &xfs_params.fstrm_timer.min,
.extra2 = &xfs_params.fstrm_timer.max, .extra2 = &xfs_params.fstrm_timer.max,
}, },
/* please keep this the last entry */ /* please keep this the last entry */
#ifdef CONFIG_PROC_FS #ifdef CONFIG_PROC_FS
{ {
.ctl_name = XFS_STATS_CLEAR,
.procname = "stats_clear", .procname = "stats_clear",
.data = &xfs_params.stats_clear.val, .data = &xfs_params.stats_clear.val,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler = &xfs_stats_clear_proc_handler, .proc_handler = &xfs_stats_clear_proc_handler,
.strategy = &sysctl_intvec,
.extra1 = &xfs_params.stats_clear.min, .extra1 = &xfs_params.stats_clear.min,
.extra2 = &xfs_params.stats_clear.max .extra2 = &xfs_params.stats_clear.max
}, },
...@@ -229,7 +199,6 @@ static ctl_table xfs_table[] = { ...@@ -229,7 +199,6 @@ static ctl_table xfs_table[] = {
static ctl_table xfs_dir_table[] = { static ctl_table xfs_dir_table[] = {
{ {
.ctl_name = FS_XFS,
.procname = "xfs", .procname = "xfs",
.mode = 0555, .mode = 0555,
.child = xfs_table .child = xfs_table
...@@ -239,7 +208,6 @@ static ctl_table xfs_dir_table[] = { ...@@ -239,7 +208,6 @@ static ctl_table xfs_dir_table[] = {
static ctl_table xfs_root_table[] = { static ctl_table xfs_root_table[] = {
{ {
.ctl_name = CTL_FS,
.procname = "fs", .procname = "fs",
.mode = 0555, .mode = 0555,
.child = xfs_dir_table .child = xfs_dir_table
......
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