]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: Fix xqmstats offsets in /proc/fs/xfs/xqmstat
authorCarlos Maiolino <cmaiolino@redhat.com>
Thu, 18 Oct 2018 06:21:34 +0000 (17:21 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 18 Oct 2018 06:21:34 +0000 (17:21 +1100)
commit7a13374ad5b21626050dd6a6f2e339d93b9ae133
tree2df6e84ff3bb4f355680f0deae2a3d3bc02cc61c
parent512457e60e59f666c7b9a3d27ed92e039baf11ab
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: 3c5be3be xfs: add rmap btree stats infrastructure
Fixes: 07a0c3eb xfs: support the XFS_BTNUM_FINOBT free inode btree type
Fixes: 7ec46cb0 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>
fs/xfs/xfs_stats.c