• Darrick J. Wong's avatar
    xfs: roll the scrub transaction after completing a repair · efb43b35
    Darrick J. Wong authored
    When we've finished repairing an AG header, roll the scrub transaction.
    This ensure that any failures caused by defer ops failing are captured
    by the xrep_done tracepoint and that any stacktraces that occur will
    point to the repair code that caused it, instead of xchk_teardown.
    
    Going forward, repair functions should commit the transaction if they're
    going to return success.  Usually the space reaping functions that run
    after a successful atomic commit of the new metadata will take care of
    that for us.
    Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
    Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
    efb43b35
agheader_repair.c 26.9 KB