summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_stats.h
diff options
context:
space:
mode:
authorBill O'Donnell <billodo@redhat.com>2015-10-11 21:15:45 +0300
committerDave Chinner <david@fromorbit.com>2015-10-11 21:15:45 +0300
commitbb230c124730f21eea13deab433f9f8fc96bd5f3 (patch)
treed01a02b30ce4a5aa04a371e416b22f9f6d533217 /fs/xfs/xfs_stats.h
parent1f93e4a96c9109378204c147b3eec0d0e8100fde (diff)
downloadlinux-bb230c124730f21eea13deab433f9f8fc96bd5f3.tar.xz
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_stats.h')
-rw-r--r--fs/xfs/xfs_stats.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_stats.h b/fs/xfs/xfs_stats.h
index c8f238b8299a..18807b576394 100644
--- a/fs/xfs/xfs_stats.h
+++ b/fs/xfs/xfs_stats.h
@@ -18,6 +18,8 @@
#ifndef __XFS_STATS_H__
#define __XFS_STATS_H__
+int xfs_stats_format(char *buf);
+void xfs_stats_clearall(void);
#if defined(CONFIG_PROC_FS) && !defined(XFS_STATS_OFF)