gfs2: Split up gfs2_meta_sync into inode and rgrp versions
authorBob Peterson <rpeterso@redhat.com>
Tue, 27 Oct 2020 17:29:37 +0000 (12:29 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Thu, 29 Oct 2020 21:16:46 +0000 (22:16 +0100)
commit4a55752ae288caaef8df4c5f4e07393c127bb9f0
tree264154bb3f82260be46d540148e27ca9c483dd89
parentc4af59bd441f90e185a652cce1aaf38dea293bf2
gfs2: Split up gfs2_meta_sync into inode and rgrp versions

Before this patch, function gfs2_meta_sync called filemap_fdatawrite to write
the address space for the metadata being synced. That's great for inodes, but
resource groups all point to the same superblock-address space, sdp->sd_aspace.
Each rgrp has its own range of blocks on which it should operate. That meant
every time an rgrp's metadata was synced, it would write all of them instead
of just the range.

This patch eliminates function gfs2_meta_sync and tailors specific metasync
functions for inodes and rgrps.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/glops.c
fs/gfs2/glops.h
fs/gfs2/lops.c
fs/gfs2/lops.h
fs/gfs2/recovery.c