Skip to content

xfs stats fixes - V2

Carlos Maiolino linux-xfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2xfs: Fix xqmstats offsets in /proc/fs/xfs/xqmstatfs/xfs/xfs_stats.c+1 -10 replies
2/2xfs: use offsetof() in place of offset macros for __xfsstatsfs/xfs/xfs_stats.c fs/xfs/xfs_stats.h+31 -498 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchEric SandeenDarrick J. Wong
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] xfs stats fixes - V2

Hi,

this is a new version of my fixes to xfsstats code, the V1 is here:
https://marc.info/?l=linux-xfs&m=153857014823217&w=2

This patchset main goal, is to fix a bug which makes /proc/fs/xfs/xqmstat to display garbage data (patch 1), and a re-work of the offset marks in __xfsstats, replacing the defines, by usage of offsetof(), as suggested by Eric and Dave.

Patch 2 isn't tagged as V2, because it's essentially different from the patch 2 of the first version. It still prevents offset mistakes in future updates of __xfsstats, but in a different way than the V1 patchset

I'm not tagging stable here, because patch 2 only applies cleanly since 4.18

Carlos Maiolino (2):
xfs: Fix xqmstats offsets in /proc/fs/xfs/xqmstat
xfs: use offsetof() in place of offset macros for __xfsstats

 fs/xfs/xfs_stats.c | 52 +++++++++++++++++++++++++---------------------
 fs/xfs/xfs_stats.h | 28 +++----------------------
 2 files changed, 31 insertions(+), 49 deletions(-)
Signature · 1 line
2.17.1