X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fobdclass%2Flprocfs_counters.c;h=bbdcfd47ebad950be148912f63a51813685083cd;hb=acd639bf0de0c39419dff94fd6d338283a1ddb24;hp=51ce4ae3dfa02e7d416e0359a8ccdd65a0f23fc5;hpb=5707f919e41dffe024d5852321e0216eb105e206;p=fs%2Flustre-release.git diff --git a/lustre/obdclass/lprocfs_counters.c b/lustre/obdclass/lprocfs_counters.c index 51ce4ae..bbdcfd4 100644 --- a/lustre/obdclass/lprocfs_counters.c +++ b/lustre/obdclass/lprocfs_counters.c @@ -36,15 +36,11 @@ * * Author: Andreas Dilger */ -#ifdef __KERNEL__ #include -#else -#include -#endif #include #include -#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 */