Whamcloud - gitweb
LU-5275 lprocfs: replace LPROCFS with CONFIG_PROC_FS
[fs/lustre-release.git] / libcfs / include / libcfs / params_tree.h
index 649b255..16983d3 100644 (file)
 #include <linux/spinlock.h>
 
 #ifdef CONFIG_PROC_FS
-# define LPROCFS
-#endif /* CONFIG_PROC_FS */
-
-#ifdef LPROCFS
 # ifndef HAVE_ONLY_PROCFS_SEQ
 /* in lprocfs_stat.c, to protect the private data for proc entries */
 extern struct rw_semaphore             _lprocfs_lock;
@@ -101,5 +97,5 @@ static inline int LPROCFS_ENTRY_CHECK(struct inode *inode)
 #define LPROCFS_WRITE_EXIT()  do {} while(0)
 
 # endif /* !HAVE_ONLY_PROCFS_SEQ */
-#endif /* LPROCFS */
+#endif /* CONFIG_PROC_FS */
 #endif  /* __PARAMS_TREE_H__ */