diff options
author | Carlos Maiolino <cmaiolino@redhat.com> | 2018-10-18 02:21:34 -0400 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2018-10-18 02:21:34 -0400 |
commit | 41657e5507b13e963be906d5d874f4f02374fd5c (patch) | |
tree | 2df6e84ff3bb4f355680f0deae2a3d3bc02cc61c | |
parent | 37fd1678245f7a5898c1b05128bc481fb403c290 (diff) |
xfs: Fix xqmstats offsets in /proc/fs/xfs/xqmstat
The addition of FIBT, RMAP and REFCOUNT changed the offsets into
__xfssats structure.
This caused xqmstat_proc_show() to display garbage data via
/proc/fs/xfs/xqmstat, once it relies on the offsets marked via macros.
Fix it.
Fixes: 00f4e4f9 xfs: add rmap btree stats infrastructure
Fixes: aafc3c24 xfs: support the XFS_BTNUM_FINOBT free inode btree type
Fixes: 46eeb521 xfs: introduce refcount btree definitions
Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
-rw-r--r-- | fs/xfs/xfs_stats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_stats.c b/fs/xfs/xfs_stats.c index 4e4423153071..740ac9674848 100644 --- a/fs/xfs/xfs_stats.c +++ b/fs/xfs/xfs_stats.c | |||
@@ -119,7 +119,7 @@ static int xqmstat_proc_show(struct seq_file *m, void *v) | |||
119 | int j; | 119 | int j; |
120 | 120 | ||
121 | seq_printf(m, "qm"); | 121 | seq_printf(m, "qm"); |
122 | for (j = XFSSTAT_END_IBT_V2; j < XFSSTAT_END_XQMSTAT; j++) | 122 | for (j = XFSSTAT_END_REFCOUNT; j < XFSSTAT_END_XQMSTAT; j++) |
123 | seq_printf(m, " %u", counter_val(xfsstats.xs_stats, j)); | 123 | seq_printf(m, " %u", counter_val(xfsstats.xs_stats, j)); |
124 | seq_putc(m, '\n'); | 124 | seq_putc(m, '\n'); |
125 | return 0; | 125 | return 0; |