2017-01-08 12:13:18 +03:00
|
|
|
#ifndef _BCACHE_SYSFS_H_
|
|
|
|
#define _BCACHE_SYSFS_H_
|
|
|
|
|
2017-03-20 08:39:19 +03:00
|
|
|
#include <linux/sysfs.h>
|
2017-01-08 12:13:18 +03:00
|
|
|
|
2017-03-20 08:39:19 +03:00
|
|
|
#ifndef NO_BCACHE_SYSFS
|
2017-01-08 12:13:18 +03:00
|
|
|
|
2017-03-20 08:39:19 +03:00
|
|
|
struct attribute;
|
|
|
|
struct sysfs_ops;
|
2017-01-08 12:13:18 +03:00
|
|
|
|
2017-03-20 08:39:19 +03:00
|
|
|
extern struct attribute *bch2_fs_files[];
|
|
|
|
extern struct attribute *bch2_fs_internal_files[];
|
|
|
|
extern struct attribute *bch2_fs_opts_dir_files[];
|
|
|
|
extern struct attribute *bch2_fs_time_stats_files[];
|
|
|
|
extern struct attribute *bch2_dev_files[];
|
2017-01-08 12:13:18 +03:00
|
|
|
|
2017-03-20 08:39:19 +03:00
|
|
|
extern struct sysfs_ops bch2_fs_sysfs_ops;
|
|
|
|
extern struct sysfs_ops bch2_fs_internal_sysfs_ops;
|
|
|
|
extern struct sysfs_ops bch2_fs_opts_dir_sysfs_ops;
|
|
|
|
extern struct sysfs_ops bch2_fs_time_stats_sysfs_ops;
|
|
|
|
extern struct sysfs_ops bch2_dev_sysfs_ops;
|
2017-01-08 12:13:18 +03:00
|
|
|
|
2017-03-20 08:39:19 +03:00
|
|
|
#else
|
2017-01-08 12:13:18 +03:00
|
|
|
|
2017-03-20 08:39:19 +03:00
|
|
|
static struct attribute *bch2_fs_files[] = {};
|
|
|
|
static struct attribute *bch2_fs_internal_files[] = {};
|
|
|
|
static struct attribute *bch2_fs_opts_dir_files[] = {};
|
|
|
|
static struct attribute *bch2_fs_time_stats_files[] = {};
|
|
|
|
static struct attribute *bch2_dev_files[] = {};
|
2017-01-08 12:13:18 +03:00
|
|
|
|
2017-03-20 08:39:19 +03:00
|
|
|
static const struct sysfs_ops bch2_fs_sysfs_ops;
|
|
|
|
static const struct sysfs_ops bch2_fs_internal_sysfs_ops;
|
|
|
|
static const struct sysfs_ops bch2_fs_opts_dir_sysfs_ops;
|
|
|
|
static const struct sysfs_ops bch2_fs_time_stats_sysfs_ops;
|
|
|
|
static const struct sysfs_ops bch2_dev_sysfs_ops;
|
2017-01-08 12:13:18 +03:00
|
|
|
|
2017-03-20 08:39:19 +03:00
|
|
|
#endif
|
2017-01-08 12:13:18 +03:00
|
|
|
|
|
|
|
#endif /* _BCACHE_SYSFS_H_ */
|