xfs: Fix xqmstats offsets in /proc/fs/xfs/xqmstat
authorCarlos Maiolino <cmaiolino@redhat.com>
Mon, 4 Feb 2019 16:54:18 +0000 (08:54 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 18:47:20 +0000 (19:47 +0100)
commit62c7c0a8709b254060cb5f76e9ed6a39f6aae20f
treebcf4c45a29a843de10a44665381e770c02472cdc
parentaacb2ab111c58faebf8e0a79d0af225f49602642
xfs: Fix xqmstats offsets in /proc/fs/xfs/xqmstat

commit 41657e5507b13e963be906d5d874f4f02374fd5c upstream.

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>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/xfs/xfs_stats.c