From mboxrd@z Thu Jan 1 00:00:00 1970 From: Abhi Das Date: Tue, 20 Oct 2020 15:58:02 -0500 Subject: [Cluster-devel] [PATCH v3 0/3] gfs2: local statfs improvements Message-ID: <20201020205805.5705-1-adas@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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(-) -- 2.20.1