aboutsummaryrefslogtreecommitdiffstats
path: root/fs/quota
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2009-11-05 17:25:10 -0500
committerEric W. Biederman <ebiederm@xmission.com>2009-11-12 05:04:55 -0500
commitab09203e302b6e526f6930f3e460064b0f253ae9 (patch)
treebc95bfaba78ba30613d57c676eca42818b8a3293 /fs/quota
parent2bc4657c15e4a33d9a192579c7627a397dbcbebc (diff)
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: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'fs/quota')
-rw-r--r--fs/quota/dquot.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c
index 39b49c42a7ed..60940f8709d6 100644
--- a/fs/quota/dquot.c
+++ b/fs/quota/dquot.c
@@ -2473,7 +2473,6 @@ const struct quotactl_ops vfs_quotactl_ops = {
2473 2473
2474static ctl_table fs_dqstats_table[] = { 2474static ctl_table fs_dqstats_table[] = {
2475 { 2475 {
2476 .ctl_name = FS_DQ_LOOKUPS,
2477 .procname = "lookups", 2476 .procname = "lookups",
2478 .data = &dqstats.lookups, 2477 .data = &dqstats.lookups,
2479 .maxlen = sizeof(int), 2478 .maxlen = sizeof(int),
@@ -2481,7 +2480,6 @@ static ctl_table fs_dqstats_table[] = {
2481 .proc_handler = &proc_dointvec, 2480 .proc_handler = &proc_dointvec,
2482 }, 2481 },
2483 { 2482 {
2484 .ctl_name = FS_DQ_DROPS,
2485 .procname = "drops", 2483 .procname = "drops",
2486 .data = &dqstats.drops, 2484 .data = &dqstats.drops,
2487 .maxlen = sizeof(int), 2485 .maxlen = sizeof(int),
@@ -2489,7 +2487,6 @@ static ctl_table fs_dqstats_table[] = {
2489 .proc_handler = &proc_dointvec, 2487 .proc_handler = &proc_dointvec,
2490 }, 2488 },
2491 { 2489 {
2492 .ctl_name = FS_DQ_READS,
2493 .procname = "reads", 2490 .procname = "reads",
2494 .data = &dqstats.reads, 2491 .data = &dqstats.reads,
2495 .maxlen = sizeof(int), 2492 .maxlen = sizeof(int),
@@ -2497,7 +2494,6 @@ static ctl_table fs_dqstats_table[] = {
2497 .proc_handler = &proc_dointvec, 2494 .proc_handler = &proc_dointvec,
2498 }, 2495 },
2499 { 2496 {
2500 .ctl_name = FS_DQ_WRITES,
2501 .procname = "writes", 2497 .procname = "writes",
2502 .data = &dqstats.writes, 2498 .data = &dqstats.writes,
2503 .maxlen = sizeof(int), 2499 .maxlen = sizeof(int),
@@ -2505,7 +2501,6 @@ static ctl_table fs_dqstats_table[] = {
2505 .proc_handler = &proc_dointvec, 2501 .proc_handler = &proc_dointvec,
2506 }, 2502 },
2507 { 2503 {
2508 .ctl_name = FS_DQ_CACHE_HITS,
2509 .procname = "cache_hits", 2504 .procname = "cache_hits",
2510 .data = &dqstats.cache_hits, 2505 .data = &dqstats.cache_hits,
2511 .maxlen = sizeof(int), 2506 .maxlen = sizeof(int),
@@ -2513,7 +2508,6 @@ static ctl_table fs_dqstats_table[] = {
2513 .proc_handler = &proc_dointvec, 2508 .proc_handler = &proc_dointvec,
2514 }, 2509 },
2515 { 2510 {
2516 .ctl_name = FS_DQ_ALLOCATED,
2517 .procname = "allocated_dquots", 2511 .procname = "allocated_dquots",
2518 .data = &dqstats.allocated_dquots, 2512 .data = &dqstats.allocated_dquots,
2519 .maxlen = sizeof(int), 2513 .maxlen = sizeof(int),
@@ -2521,7 +2515,6 @@ static ctl_table fs_dqstats_table[] = {
2521 .proc_handler = &proc_dointvec, 2515 .proc_handler = &proc_dointvec,
2522 }, 2516 },
2523 { 2517 {
2524 .ctl_name = FS_DQ_FREE,
2525 .procname = "free_dquots", 2518 .procname = "free_dquots",
2526 .data = &dqstats.free_dquots, 2519 .data = &dqstats.free_dquots,
2527 .maxlen = sizeof(int), 2520 .maxlen = sizeof(int),
@@ -2529,7 +2522,6 @@ static ctl_table fs_dqstats_table[] = {
2529 .proc_handler = &proc_dointvec, 2522 .proc_handler = &proc_dointvec,
2530 }, 2523 },
2531 { 2524 {
2532 .ctl_name = FS_DQ_SYNCS,
2533 .procname = "syncs", 2525 .procname = "syncs",
2534 .data = &dqstats.syncs, 2526 .data = &dqstats.syncs,
2535 .maxlen = sizeof(int), 2527 .maxlen = sizeof(int),
@@ -2538,7 +2530,6 @@ static ctl_table fs_dqstats_table[] = {
2538 }, 2530 },
2539#ifdef CONFIG_PRINT_QUOTA_WARNING 2531#ifdef CONFIG_PRINT_QUOTA_WARNING
2540 { 2532 {
2541 .ctl_name = FS_DQ_WARNINGS,
2542 .procname = "warnings", 2533 .procname = "warnings",
2543 .data = &flag_print_warnings, 2534 .data = &flag_print_warnings,
2544 .maxlen = sizeof(int), 2535 .maxlen = sizeof(int),
@@ -2546,27 +2537,25 @@ static ctl_table fs_dqstats_table[] = {
2546 .proc_handler = &proc_dointvec, 2537 .proc_handler = &proc_dointvec,
2547 }, 2538 },
2548#endif 2539#endif
2549 { .ctl_name = 0 }, 2540 { },
2550}; 2541};
2551 2542
2552static ctl_table fs_table[] = { 2543static ctl_table fs_table[] = {
2553 { 2544 {
2554 .ctl_name = FS_DQSTATS,
2555 .procname = "quota", 2545 .procname = "quota",
2556 .mode = 0555, 2546 .mode = 0555,
2557 .child = fs_dqstats_table, 2547 .child = fs_dqstats_table,
2558 }, 2548 },
2559 { .ctl_name = 0 }, 2549 { },
2560}; 2550};
2561 2551
2562static ctl_table sys_table[] = { 2552static ctl_table sys_table[] = {
2563 { 2553 {
2564 .ctl_name = CTL_FS,
2565 .procname = "fs", 2554 .procname = "fs",
2566 .mode = 0555, 2555 .mode = 0555,
2567 .child = fs_table, 2556 .child = fs_table,
2568 }, 2557 },
2569 { .ctl_name = 0 }, 2558 { },
2570}; 2559};
2571 2560
2572static int __init dquot_init(void) 2561static int __init dquot_init(void)