diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-07-16 16:39:14 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-07-17 13:33:18 -0400 |
commit | 466bfe7f4a5bee4cdd73d3f6bd290173a8c75a40 (patch) | |
tree | 1b05eafffa8d48b9ba89bde693495daa80395d56 /fs/nfs/sysctl.c | |
parent | 129d1977ed39cbb4f091a518e4a12498c04f45ba (diff) |
NFS: Initialize v4 sysctls from nfs_init_v4()
And split them out of the generic client into their own file.
Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/sysctl.c')
-rw-r--r-- | fs/nfs/sysctl.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/fs/nfs/sysctl.c b/fs/nfs/sysctl.c index ad4d2e787b20..6b3f2535a3ec 100644 --- a/fs/nfs/sysctl.c +++ b/fs/nfs/sysctl.c | |||
@@ -9,37 +9,11 @@ | |||
9 | #include <linux/fs.h> | 9 | #include <linux/fs.h> |
10 | #include <linux/sysctl.h> | 10 | #include <linux/sysctl.h> |
11 | #include <linux/module.h> | 11 | #include <linux/module.h> |
12 | #include <linux/nfs4.h> | ||
13 | #include <linux/nfs_idmap.h> | ||
14 | #include <linux/nfs_fs.h> | 12 | #include <linux/nfs_fs.h> |
15 | 13 | ||
16 | #include "callback.h" | ||
17 | |||
18 | #ifdef CONFIG_NFS_V4 | ||
19 | static const int nfs_set_port_min = 0; | ||
20 | static const int nfs_set_port_max = 65535; | ||
21 | #endif | ||
22 | static struct ctl_table_header *nfs_callback_sysctl_table; | 14 | static struct ctl_table_header *nfs_callback_sysctl_table; |
23 | 15 | ||
24 | static ctl_table nfs_cb_sysctls[] = { | 16 | static ctl_table nfs_cb_sysctls[] = { |
25 | #ifdef CONFIG_NFS_V4 | ||
26 | { | ||
27 | .procname = "nfs_callback_tcpport", | ||
28 | .data = &nfs_callback_set_tcpport, | ||
29 | .maxlen = sizeof(int), | ||
30 | .mode = 0644, | ||
31 | .proc_handler = proc_dointvec_minmax, | ||
32 | .extra1 = (int *)&nfs_set_port_min, | ||
33 | .extra2 = (int *)&nfs_set_port_max, | ||
34 | }, | ||
35 | { | ||
36 | .procname = "idmap_cache_timeout", | ||
37 | .data = &nfs_idmap_cache_timeout, | ||
38 | .maxlen = sizeof(int), | ||
39 | .mode = 0644, | ||
40 | .proc_handler = proc_dointvec_jiffies, | ||
41 | }, | ||
42 | #endif | ||
43 | { | 17 | { |
44 | .procname = "nfs_mountpoint_timeout", | 18 | .procname = "nfs_mountpoint_timeout", |
45 | .data = &nfs_mountpoint_expiry_timeout, | 19 | .data = &nfs_mountpoint_expiry_timeout, |