diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-08 10:38:50 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-08 10:38:50 -0500 |
commit | 1557d33007f63dd96e5d15f33af389378e5f2e54 (patch) | |
tree | 06d05722b2ba5d2a67532f779fa8a88efe3c88f1 /fs/quota/dquot.c | |
parent | 6ec22f9b037fc0c2e00ddb7023fad279c365324d (diff) | |
parent | c656ae95d1c5c8ed5763356263ace2d03087efec (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/sysctl-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/sysctl-2.6: (43 commits)
security/tomoyo: Remove now unnecessary handling of security_sysctl.
security/tomoyo: Add a special case to handle accesses through the internal proc mount.
sysctl: Drop & in front of every proc_handler.
sysctl: Remove CTL_NONE and CTL_UNNUMBERED
sysctl: kill dead ctl_handler definitions.
sysctl: Remove the last of the generic binary sysctl support
sysctl net: Remove unused binary sysctl code
sysctl security/tomoyo: Don't look at ctl_name
sysctl arm: Remove binary sysctl support
sysctl x86: Remove dead binary sysctl support
sysctl sh: Remove dead binary sysctl support
sysctl powerpc: Remove dead binary sysctl support
sysctl ia64: Remove dead binary sysctl support
sysctl s390: Remove dead sysctl binary support
sysctl frv: Remove dead binary sysctl support
sysctl mips/lasat: Remove dead binary sysctl support
sysctl drivers: Remove dead binary sysctl support
sysctl crypto: Remove dead binary sysctl support
sysctl security/keys: Remove dead binary sysctl support
sysctl kernel: Remove binary sysctl logic
...
Diffstat (limited to 'fs/quota/dquot.c')
-rw-r--r-- | fs/quota/dquot.c | 35 |
1 files changed, 12 insertions, 23 deletions
diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index 9b6ad908dcb2..eb5a755718f6 100644 --- a/fs/quota/dquot.c +++ b/fs/quota/dquot.c | |||
@@ -2404,100 +2404,89 @@ const struct quotactl_ops vfs_quotactl_ops = { | |||
2404 | 2404 | ||
2405 | static ctl_table fs_dqstats_table[] = { | 2405 | static ctl_table fs_dqstats_table[] = { |
2406 | { | 2406 | { |
2407 | .ctl_name = FS_DQ_LOOKUPS, | ||
2408 | .procname = "lookups", | 2407 | .procname = "lookups", |
2409 | .data = &dqstats.lookups, | 2408 | .data = &dqstats.lookups, |
2410 | .maxlen = sizeof(int), | 2409 | .maxlen = sizeof(int), |
2411 | .mode = 0444, | 2410 | .mode = 0444, |
2412 | .proc_handler = &proc_dointvec, | 2411 | .proc_handler = proc_dointvec, |
2413 | }, | 2412 | }, |
2414 | { | 2413 | { |
2415 | .ctl_name = FS_DQ_DROPS, | ||
2416 | .procname = "drops", | 2414 | .procname = "drops", |
2417 | .data = &dqstats.drops, | 2415 | .data = &dqstats.drops, |
2418 | .maxlen = sizeof(int), | 2416 | .maxlen = sizeof(int), |
2419 | .mode = 0444, | 2417 | .mode = 0444, |
2420 | .proc_handler = &proc_dointvec, | 2418 | .proc_handler = proc_dointvec, |
2421 | }, | 2419 | }, |
2422 | { | 2420 | { |
2423 | .ctl_name = FS_DQ_READS, | ||
2424 | .procname = "reads", | 2421 | .procname = "reads", |
2425 | .data = &dqstats.reads, | 2422 | .data = &dqstats.reads, |
2426 | .maxlen = sizeof(int), | 2423 | .maxlen = sizeof(int), |
2427 | .mode = 0444, | 2424 | .mode = 0444, |
2428 | .proc_handler = &proc_dointvec, | 2425 | .proc_handler = proc_dointvec, |
2429 | }, | 2426 | }, |
2430 | { | 2427 | { |
2431 | .ctl_name = FS_DQ_WRITES, | ||
2432 | .procname = "writes", | 2428 | .procname = "writes", |
2433 | .data = &dqstats.writes, | 2429 | .data = &dqstats.writes, |
2434 | .maxlen = sizeof(int), | 2430 | .maxlen = sizeof(int), |
2435 | .mode = 0444, | 2431 | .mode = 0444, |
2436 | .proc_handler = &proc_dointvec, | 2432 | .proc_handler = proc_dointvec, |
2437 | }, | 2433 | }, |
2438 | { | 2434 | { |
2439 | .ctl_name = FS_DQ_CACHE_HITS, | ||
2440 | .procname = "cache_hits", | 2435 | .procname = "cache_hits", |
2441 | .data = &dqstats.cache_hits, | 2436 | .data = &dqstats.cache_hits, |
2442 | .maxlen = sizeof(int), | 2437 | .maxlen = sizeof(int), |
2443 | .mode = 0444, | 2438 | .mode = 0444, |
2444 | .proc_handler = &proc_dointvec, | 2439 | .proc_handler = proc_dointvec, |
2445 | }, | 2440 | }, |
2446 | { | 2441 | { |
2447 | .ctl_name = FS_DQ_ALLOCATED, | ||
2448 | .procname = "allocated_dquots", | 2442 | .procname = "allocated_dquots", |
2449 | .data = &dqstats.allocated_dquots, | 2443 | .data = &dqstats.allocated_dquots, |
2450 | .maxlen = sizeof(int), | 2444 | .maxlen = sizeof(int), |
2451 | .mode = 0444, | 2445 | .mode = 0444, |
2452 | .proc_handler = &proc_dointvec, | 2446 | .proc_handler = proc_dointvec, |
2453 | }, | 2447 | }, |
2454 | { | 2448 | { |
2455 | .ctl_name = FS_DQ_FREE, | ||
2456 | .procname = "free_dquots", | 2449 | .procname = "free_dquots", |
2457 | .data = &dqstats.free_dquots, | 2450 | .data = &dqstats.free_dquots, |
2458 | .maxlen = sizeof(int), | 2451 | .maxlen = sizeof(int), |
2459 | .mode = 0444, | 2452 | .mode = 0444, |
2460 | .proc_handler = &proc_dointvec, | 2453 | .proc_handler = proc_dointvec, |
2461 | }, | 2454 | }, |
2462 | { | 2455 | { |
2463 | .ctl_name = FS_DQ_SYNCS, | ||
2464 | .procname = "syncs", | 2456 | .procname = "syncs", |
2465 | .data = &dqstats.syncs, | 2457 | .data = &dqstats.syncs, |
2466 | .maxlen = sizeof(int), | 2458 | .maxlen = sizeof(int), |
2467 | .mode = 0444, | 2459 | .mode = 0444, |
2468 | .proc_handler = &proc_dointvec, | 2460 | .proc_handler = proc_dointvec, |
2469 | }, | 2461 | }, |
2470 | #ifdef CONFIG_PRINT_QUOTA_WARNING | 2462 | #ifdef CONFIG_PRINT_QUOTA_WARNING |
2471 | { | 2463 | { |
2472 | .ctl_name = FS_DQ_WARNINGS, | ||
2473 | .procname = "warnings", | 2464 | .procname = "warnings", |
2474 | .data = &flag_print_warnings, | 2465 | .data = &flag_print_warnings, |
2475 | .maxlen = sizeof(int), | 2466 | .maxlen = sizeof(int), |
2476 | .mode = 0644, | 2467 | .mode = 0644, |
2477 | .proc_handler = &proc_dointvec, | 2468 | .proc_handler = proc_dointvec, |
2478 | }, | 2469 | }, |
2479 | #endif | 2470 | #endif |
2480 | { .ctl_name = 0 }, | 2471 | { }, |
2481 | }; | 2472 | }; |
2482 | 2473 | ||
2483 | static ctl_table fs_table[] = { | 2474 | static ctl_table fs_table[] = { |
2484 | { | 2475 | { |
2485 | .ctl_name = FS_DQSTATS, | ||
2486 | .procname = "quota", | 2476 | .procname = "quota", |
2487 | .mode = 0555, | 2477 | .mode = 0555, |
2488 | .child = fs_dqstats_table, | 2478 | .child = fs_dqstats_table, |
2489 | }, | 2479 | }, |
2490 | { .ctl_name = 0 }, | 2480 | { }, |
2491 | }; | 2481 | }; |
2492 | 2482 | ||
2493 | static ctl_table sys_table[] = { | 2483 | static ctl_table sys_table[] = { |
2494 | { | 2484 | { |
2495 | .ctl_name = CTL_FS, | ||
2496 | .procname = "fs", | 2485 | .procname = "fs", |
2497 | .mode = 0555, | 2486 | .mode = 0555, |
2498 | .child = fs_table, | 2487 | .child = fs_table, |
2499 | }, | 2488 | }, |
2500 | { .ctl_name = 0 }, | 2489 | { }, |
2501 | }; | 2490 | }; |
2502 | 2491 | ||
2503 | static int __init dquot_init(void) | 2492 | static int __init dquot_init(void) |