Skip to content

Commit 41657e5

Browse files
cmaiolinodchinner
authored andcommitted
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: 00f4e4f xfs: add rmap btree stats infrastructure Fixes: aafc3c2 xfs: support the XFS_BTNUM_FINOBT free inode btree type Fixes: 46eeb52 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>
1 parent 37fd167 commit 41657e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/xfs/xfs_stats.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ static int xqmstat_proc_show(struct seq_file *m, void *v)
119119
int j;
120120

121121
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++)
123123
seq_printf(m, " %u", counter_val(xfsstats.xs_stats, j));
124124
seq_putc(m, '\n');
125125
return 0;

0 commit comments

Comments
 (0)