• B
    xfs: refactor unmount record detection into helper · 65b99a08
    Brian Foster 提交于
    Once the mount sequence has identified the head and tail blocks of the
    physical log, the record at the head of the log is located and examined
    for an unmount record to determine if the log is clean. This currently
    occurs after torn write verification of the head region of the log.
    
    This must ultimately be separated from torn write verification and may
    need to be called again if the log head is walked back due to a torn
    write (to determine whether the new head record is an unmount record).
    Separate this logic into a new helper function. This patch does not
    change behavior.
    Signed-off-by: NBrian Foster <bfoster@redhat.com>
    Reviewed-by: NDave Chinner <dchinner@redhat.com>
    Signed-off-by: NDave Chinner <david@fromorbit.com>
    
    65b99a08
xfs_log_recover.c 143.3 KB