Whamcloud - gitweb
LU-12186 ec: add necessary structure member for EC file
[fs/lustre-release.git] / lustre / obdclass / lprocfs_counters.c
index 51ce4ae..521e59c 100644 (file)
@@ -28,7 +28,6 @@
  */
 /*
  * This file is part of Lustre, http://www.lustre.org/
- * Lustre is a trademark of Sun Microsystems, Inc.
  *
  * lustre/obdclass/lprocfs_counters.c
  *
  *
  * Author: Andreas Dilger <andreas.dilger@intel.com>
  */
-#ifdef __KERNEL__
 #include <linux/module.h>
-#else
-#include <liblustre.h>
-#endif
 #include <lustre_lib.h>
 #include <lprocfs_status.h>
 
-#ifdef LPROCFS
+#ifdef CONFIG_PROC_FS
 void lprocfs_counter_add(struct lprocfs_stats *stats, int idx, long amount)
 {
        struct lprocfs_counter          *percpu_cntr;
@@ -138,4 +133,4 @@ void lprocfs_counter_sub(struct lprocfs_stats *stats, int idx, long amount)
        lprocfs_stats_unlock(stats, LPROCFS_GET_SMP_ID, &flags);
 }
 EXPORT_SYMBOL(lprocfs_counter_sub);
-#endif  /* LPROCFS */
+#endif  /* CONFIG_PROC_FS */