• Dave Chinner's avatar
    xfs: introduce xfs_sb_is_v5 helper · d6837c1a
    Dave Chinner authored
    Rather than open coding XFS_SB_VERSION_NUM(sbp) == XFS_SB_VERSION_5
    checks everywhere, add a simple wrapper to encapsulate this and make
    the code easier to read.
    
    This allows us to remove the xfs_sb_version_has_v3inode() wrapper
    which is only used in xfs_format.h now and is just a version number
    check.
    
    There are a couple of places where we should be checking the mount
    feature bits rather than the superblock version (e.g. remount), so
    those are converted to use xfs_has_crc(mp) instead.
    Signed-off-by: default avatarDave Chinner <dchinner@redhat.com>
    Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
    Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
    d6837c1a
xfs_log_recover.c 98.4 KB