X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fnfs%2Fsysctl.c;h=3ea50ac648209dc28ad6ed1aa632f3a9f0df1ff9;hb=refs%2Fheads%2Fvserver;hp=7a25a6d16ce555bebc1605c9f32ece4e0ec48aad;hpb=16c70f8c1b54b61c3b951b6fb220df250fe09b32;p=linux-2.6.git diff --git a/fs/nfs/sysctl.c b/fs/nfs/sysctl.c index 7a25a6d16..3ea50ac64 100644 --- a/fs/nfs/sysctl.c +++ b/fs/nfs/sysctl.c @@ -14,16 +14,10 @@ #include #include "callback.h" -#include "internal.h" static const int nfs_set_port_min = 0; static const int nfs_set_port_max = 65535; static struct ctl_table_header *nfs_callback_sysctl_table; -/* - * Something that isn't CTL_ANY, CTL_NONE or a value that may clash. - * Use the same values as fs/lockd/svc.c - */ -#define CTL_UNNUMBERED -2 static ctl_table nfs_cb_sysctls[] = { #ifdef CONFIG_NFS_V4 @@ -56,48 +50,6 @@ static ctl_table nfs_cb_sysctls[] = { .proc_handler = &proc_dointvec_jiffies, .strategy = &sysctl_jiffies, }, -#ifdef CONFIG_NFS_FSCACHE - { - .ctl_name = CTL_UNNUMBERED, - .procname = "fscache_from_error", - .data = &nfs_fscache_from_error, - .maxlen = sizeof(int), - .mode = 0644, - .proc_handler = &proc_dointvec, - }, - { - .ctl_name = CTL_UNNUMBERED, - .procname = "fscache_to_error", - .data = &nfs_fscache_to_error, - .maxlen = sizeof(int), - .mode = 0644, - .proc_handler = &proc_dointvec, - }, - { - .ctl_name = CTL_UNNUMBERED, - .procname = "fscache_uncache_page", - .data = &nfs_fscache_uncache_page, - .maxlen = sizeof(int), - .mode = 0644, - .proc_handler = &proc_dointvec, - }, - { - .ctl_name = CTL_UNNUMBERED, - .procname = "fscache_to_pages", - .data = &nfs_fscache_to_pages, - .maxlen = sizeof(int), - .mode = 0644, - .proc_handler = &proc_dointvec_minmax, - }, - { - .ctl_name = CTL_UNNUMBERED, - .procname = "fscache_from_pages", - .data = &nfs_fscache_from_pages, - .maxlen = sizeof(int), - .mode = 0644, - .proc_handler = &proc_dointvec, - }, -#endif { .ctl_name = 0 } };