• D
    xfs: RT bitmap and summary buffers are not typed · f67ca6ec
    Dave Chinner 提交于
    When logging buffers, we attach a type to them that follows the
    buffer all the way into the log and is used to identify the buffer
    contents in log recovery. Both the realtime summary buffers and the
    bitmap buffers do not have types defined or set, so when we try to
    log them we see assert failure:
    
    XFS: Assertion failed: (bip->bli_flags & XFS_BLI_STALE) || (xfs_blft_from_flags(&bip->__bli_format) > XFS_BLFT_UNKNOWN_BUF && xfs_blft_from_flags(&bip->__bli_format) < XFS_BLFT_MAX_BUF), file: fs/xfs/xfs_buf_item.c, line: 294
    
    Fix this by adding buffer log format types for these buffers, and
    add identification support into log recovery for them. Only build the log
    recovery support if CONFIG_XFS_RT=y - we can't get into log recovery for real
    time filesystems if support is not built into the kernel, and this avoids
    potential build problems.
    Signed-off-by: NDave Chinner <dchinner@redhat.com>
    Tested-by: NRoss Zwisler <ross.zwisler@linux.intel.com>
    Reviewed-by: NEric Sandeen <sandeen@redhat.com>
    Signed-off-by: NDave Chinner <david@fromorbit.com>
    f67ca6ec
xfs_log_format.h 24.0 KB