• Bob Peterson's avatar
    gfs2: Split up gfs2_meta_sync into inode and rgrp versions · 4a55752a
    Bob Peterson authored
    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: default avatarBob Peterson <rpeterso@redhat.com>
    Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
    4a55752a
recovery.c 14.9 KB