• Dave Chinner's avatar
    xfs: dquot recovery needs verifiers · ad3714b8
    Dave Chinner authored
    dquot recovery should add verifiers to the dquot buffers that it
    recovers changes into. Unfortunately, it doesn't attached the
    verifiers to the buffers in a consistent manner. For example,
    xlog_recover_dquot_pass2() reads dquot buffers without a verifier
    and then writes it without ever having attached a verifier to the
    buffer.
    
    Further, dquot buffer recovery may write a dquot buffer that has not
    been modified, or indeed, shoul dbe written because quotas are not
    enabled and hence changes to the buffer were not replayed. In this
    case, we again write buffers without verifiers attached because that
    doesn't happen until after the buffer changes have been replayed.
    Signed-off-by: default avatarDave Chinner <dchinner@redhat.com>
    Reviewed-by: default avatarBrian Foster <bfoster@redhat.com>
    Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
    ad3714b8
xfs_log_recover.c 127 KB