x86, pat: Use page flags to track memtypes of RAM pages
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / fs / coda / sysctl.c
blob43c96ce29614e65fcdfdc3825d309ad0fe62dcfd
1 /*
2 * Sysctl operations for Coda filesystem
3 * Original version: (C) 1996 P. Braam and M. Callahan
4 * Rewritten for Linux 2.1. (C) 1997 Carnegie Mellon University
5 *
6 * Carnegie Mellon encourages users to contribute improvements to
7 * the Coda project. Contact Peter Braam (coda@cs.cmu.edu).
8 */
10 #include <linux/sysctl.h>
12 #include "coda_int.h"
14 #ifdef CONFIG_SYSCTL
15 static struct ctl_table_header *fs_table_header;
16 #endif
18 static ctl_table coda_table[] = {
20 .ctl_name = CTL_UNNUMBERED,
21 .procname = "timeout",
22 .data = &coda_timeout,
23 .maxlen = sizeof(int),
24 .mode = 0644,
25 .proc_handler = &proc_dointvec
28 .ctl_name = CTL_UNNUMBERED,
29 .procname = "hard",
30 .data = &coda_hard,
31 .maxlen = sizeof(int),
32 .mode = 0644,
33 .proc_handler = &proc_dointvec
36 .ctl_name = CTL_UNNUMBERED,
37 .procname = "fake_statfs",
38 .data = &coda_fake_statfs,
39 .maxlen = sizeof(int),
40 .mode = 0600,
41 .proc_handler = &proc_dointvec
46 #ifdef CONFIG_SYSCTL
47 static ctl_table fs_table[] = {
49 .ctl_name = CTL_UNNUMBERED,
50 .procname = "coda",
51 .mode = 0555,
52 .child = coda_table
56 #endif
58 void coda_sysctl_init(void)
60 #ifdef CONFIG_SYSCTL
61 if ( !fs_table_header )
62 fs_table_header = register_sysctl_table(fs_table);
63 #endif
66 void coda_sysctl_clean(void)
68 #ifdef CONFIG_SYSCTL
69 if ( fs_table_header ) {
70 unregister_sysctl_table(fs_table_header);
71 fs_table_header = NULL;
73 #endif