#ifndef __XFS_SCRUB_STATS_H__
#define __XFS_SCRUB_STATS_H__
struct xchk_stats_run { … };
#ifdef CONFIG_XFS_ONLINE_SCRUB_STATS
struct xchk_stats;
int __init xchk_global_stats_setup(struct dentry *parent);
void xchk_global_stats_teardown(void);
int xchk_mount_stats_alloc(struct xfs_mount *mp);
void xchk_mount_stats_free(struct xfs_mount *mp);
void xchk_stats_register(struct xchk_stats *cs, struct dentry *parent);
void xchk_stats_unregister(struct xchk_stats *cs);
void xchk_stats_merge(struct xfs_mount *mp, const struct xfs_scrub_metadata *sm,
const struct xchk_stats_run *run);
static inline u64 xchk_stats_now(void) { … }
static inline u64 xchk_stats_elapsed_ns(u64 since)
{ … }
#else
#define xchk_global_stats_setup …
#define xchk_global_stats_teardown …
#define xchk_mount_stats_alloc …
#define xchk_mount_stats_free …
#define xchk_stats_register …
#define xchk_stats_unregister …
#define xchk_stats_now …
#define xchk_stats_elapsed_ns …
#define xchk_stats_merge …
#endif
#endif