• Abhi Das's avatar
    gfs2: Recover statfs info in journal head · bedb0f05
    Abhi Das authored
    Apply the outstanding statfs changes in the journal head to the
    master statfs file. Zero out the local statfs file for good measure.
    
    Previously, statfs updates would be read in from the local statfs inode and
    synced to the master statfs inode during recovery.
    
    We now use the statfs updates in the journal head to update the master statfs
    inode instead of reading in from the local statfs inode. To preserve backward
    compatibility with kernels that can't do this, we still need to keep the
    local statfs inode up to date by writing changes to it. At some point in the
    future, we can do away with the local statfs inodes altogether and keep the
    statfs changes solely in the journal.
    Signed-off-by: default avatarAbhi Das <adas@redhat.com>
    Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
    bedb0f05
lops.c 27.8 KB