thp: fix memory-failure hugetlbfs vs THP collision
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / fs / coda / sysctl.c
blobc6405ce3c50ecb92f3b800b3f750dd96835d41f9
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 .procname = "timeout",
21 .data = &coda_timeout,
22 .maxlen = sizeof(int),
23 .mode = 0644,
24 .proc_handler = proc_dointvec
27 .procname = "hard",
28 .data = &coda_hard,
29 .maxlen = sizeof(int),
30 .mode = 0644,
31 .proc_handler = proc_dointvec
34 .procname = "fake_statfs",
35 .data = &coda_fake_statfs,
36 .maxlen = sizeof(int),
37 .mode = 0600,
38 .proc_handler = proc_dointvec
43 #ifdef CONFIG_SYSCTL
44 static ctl_table fs_table[] = {
46 .procname = "coda",
47 .mode = 0555,
48 .child = coda_table
52 #endif
54 void coda_sysctl_init(void)
56 #ifdef CONFIG_SYSCTL
57 if ( !fs_table_header )
58 fs_table_header = register_sysctl_table(fs_table);
59 #endif
62 void coda_sysctl_clean(void)
64 #ifdef CONFIG_SYSCTL
65 if ( fs_table_header ) {
66 unregister_sysctl_table(fs_table_header);
67 fs_table_header = NULL;
69 #endif