Skip to content

gfs2: local statfs improvements

Abhi Das cluster-devel 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 0 repliesNew
  2. v23 patches 0 repliesSuperseded
  3. v13 patches 0 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3gfs2: Add fields for statfs info in struct gfs2_log_header_hostfs/gfs2/incore.h fs/gfs2/recovery.c fs/gfs2/super.c +1 more+11 -10 replies
2/3gfs2: lookup local statfs inodes prior to journal recoveryfs/gfs2/incore.h fs/gfs2/ops_fstype.c fs/gfs2/super.c +1 more+139 -360 replies
3/3gfs2: Recover statfs info in journal headfs/gfs2/lops.c fs/gfs2/lops.h fs/gfs2/recovery.c+106 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [Cluster-devel] [PATCH v3 0/3] gfs2: local statfs improvements

This patchset allows gfs2 to sync statfs info from the journal to the master statfs file during a log flush or during recovery. We still write to the local statfs file to allow older versions to recover the statfs info of newer kernels with this patchset.

This version addresses the bug Andreas found with xfstests:generic/034. Turns out we weren't looking up the statfs inodes early enough in the mount process. I also added some comments in the code.

Abhi Das (3):
gfs2: Add fields for statfs info in struct gfs2_log_header_host
gfs2: lookup local statfs inodes prior to journal recovery
gfs2: Recover statfs info in journal head

 fs/gfs2/incore.h     |  12 ++++
 fs/gfs2/lops.c       |   2 +-
 fs/gfs2/lops.h       |   1 +
 fs/gfs2/ops_fstype.c | 133 +++++++++++++++++++++++++++++++------------
 fs/gfs2/recovery.c   | 108 +++++++++++++++++++++++++++++++++++
 fs/gfs2/super.c      |  33 ++++++++++-
 fs/gfs2/super.h      |   5 ++
 7 files changed, 256 insertions(+), 38 deletions(-)
Signature · 1 line
2.20.1