• Darrick J. Wong's avatar
    xfs: refactor redo intent item processing · dc42375d
    Darrick J. Wong authored
    Refactor the EFI intent item recovery (and cancellation) functions
    into a general function that scans the AIL and an intent item type
    specific handler.  Move the function that recovers a single EFI item
    into the extent free item code.  We'll want the generalized function
    when we start wiring up more redo item types.
    
    Furthermore, ensure that log recovery only replays the redo items
    that were in the AIL prior to recovery by checking the item LSN
    against the largest LSN seen during log scanning.  As written this
    should never happen, but we can be defensive anyway.
    Signed-off-by: 's avatarDarrick J. Wong <darrick.wong@oracle.com>
    Reviewed-by: 's avatarBrian Foster <bfoster@redhat.com>
    Signed-off-by: 's avatarDave Chinner <david@fromorbit.com>
    dc42375d