Whamcloud - gitweb
LU-8066 obdclass: don't copy ops structures in to new type.
[fs/lustre-release.git] / lustre / obdclass / lprocfs_counters.c
index 51ce4ae..bbdcfd4 100644 (file)
  *
  * 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 +134,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 */