• D
    xfs: refactor redo intent item processing · dc42375d
    Darrick J. Wong 提交于
    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: NDarrick J. Wong <darrick.wong@oracle.com>
    Reviewed-by: NBrian Foster <bfoster@redhat.com>
    Signed-off-by: NDave Chinner <david@fromorbit.com>
    dc42375d
xfs_log_recover.c 143.8 KB