diff options
author | Bill O'Donnell <billodo@redhat.com> | 2015-10-12 05:15:45 +1100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2015-10-12 05:15:45 +1100 |
commit | bb230c124730f21eea13deab433f9f8fc96bd5f3 (patch) | |
tree | d01a02b30ce4a5aa04a371e416b22f9f6d533217 /fs/xfs/xfs_sysfs.h | |
parent | 1f93e4a96c9109378204c147b3eec0d0e8100fde (diff) |
xfs: create global stats and stats_clear in sysfs
Currently, xfs global stats are in procfs. This patch introduces
(replicates) the global stats in sysfs. Additionally a stats_clear file
is introduced in sysfs.
Signed-off-by: Bill O'Donnell <billodo@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_sysfs.h')
-rw-r--r-- | fs/xfs/xfs_sysfs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_sysfs.h b/fs/xfs/xfs_sysfs.h index 240eee35f342..be692e59938d 100644 --- a/fs/xfs/xfs_sysfs.h +++ b/fs/xfs/xfs_sysfs.h @@ -22,6 +22,7 @@ extern struct kobj_type xfs_mp_ktype; /* xfs_mount */ extern struct kobj_type xfs_dbg_ktype; /* debug */ extern struct kobj_type xfs_log_ktype; /* xlog */ +extern struct kobj_type xfs_stats_ktype; /* stats */ static inline struct xfs_kobj * to_kobj(struct kobject *kobject) |