Whamcloud - gitweb
Remove useless and unused llite/sysctl.c file.
authoradilger <adilger>
Thu, 18 Mar 2004 06:18:45 +0000 (06:18 +0000)
committeradilger <adilger>
Thu, 18 Mar 2004 06:18:45 +0000 (06:18 +0000)
lustre/llite/Makefile.am
lustre/llite/Makefile.mk
lustre/llite/sysctl.c [deleted file]

index 493d95c..18c3a3a 100644 (file)
@@ -10,7 +10,7 @@ modulefs_DATA = llite.o
 EXTRA_PROGRAMS = llite
 
 COMMON_SRC = dcache.c dir.c file.c llite_close.c llite_lib.c llite_nfs.c rw.c \
-             lproc_llite.c namei.c symlink.c sysctl.c llite_internal.h
+             lproc_llite.c namei.c symlink.c llite_internal.h
 
 if LINUX25
 llite_SOURCES = $(COMMON_SRC) rw26.c super25.c
index 0cc6697..40345b6 100644 (file)
@@ -7,5 +7,5 @@ include $(src)/../portals/Kernelenv
 
 obj-y += llite.o
 llite-objs := llite_lib.o dcache.o super.o rw.o \
-       super25.o file.o dir.o sysctl.o symlink.o namei.o lproc_llite.o \
+       super25.o file.o dir.o symlink.o namei.o lproc_llite.o \
        rw26.o llite_nfs.o llite_close.o
diff --git a/lustre/llite/sysctl.c b/lustre/llite/sysctl.c
deleted file mode 100644 (file)
index b626046..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
- * vim:expandtab:shiftwidth=8:tabstop=8:
- *
- * Copyright (C) 2001  Cluster File Systems, Inc.
- *
- * This code is issued under the GNU General Public License.
- * See the file COPYING in this distribution
- */
-#include <linux/sched.h>
-#include <linux/mm.h>
-#include <linux/sysctl.h>
-#include <linux/version.h>
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
-#include <linux/swapctl.h>
-#endif
-#include <linux/proc_fs.h>
-#include <linux/slab.h>
-#include <linux/stat.h>
-#include <linux/ctype.h>
-#include <asm/bitops.h>
-#include <asm/segment.h>
-#include <asm/uaccess.h>
-#include <linux/utsname.h>
-
-struct ctl_table_header *ll_table_header = NULL;
-
-int ll_debug_level = 0;
-int ll_print_entry = 1;
-
-
-#define LL_SYSCTL 1
-
-#define LL_DEBUG           1       /* control debugging */
-#define LL_ENTRY           2       /* control enter/leave pattern */
-#define LL_TIMEOUT         3       /* timeout on upcalls to become intrble */
-#define LL_HARD            4       /* mount type "hard" or "soft" */
-#define LL_VARS            5       
-#define LL_INDEX           6
-#define LL_RESET           7
-
-#define LL_VARS_SLOT       2
-
-static ctl_table ll_table[] = {
-       {LL_DEBUG, "debug", &ll_debug_level, sizeof(int), 0644, NULL, &proc_dointvec},
-       {LL_ENTRY, "trace", &ll_print_entry, sizeof(int), 0644, NULL, &proc_dointvec},
-       { 0 }
-};
-
-static ctl_table top_table[] = {
-       {LL_SYSCTL, "lustre_light",    NULL, 0, 0555, ll_table},
-       {0}
-};
-
-void ll_sysctl_init (void)
-{
-
-#ifdef CONFIG_SYSCTL
-       if ( !ll_table_header )
-               ll_table_header = register_sysctl_table(top_table, 0); 
-#endif
-}
-
-void ll_sysctl_clean (void)
-{
-#ifdef CONFIG_SYSCTL
-       if ( ll_table_header )
-               unregister_sysctl_table(ll_table_header);
-       ll_table_header = NULL;
-#endif
-}