> if (xfs_sb_version_hascrc(sb) && !xfs_sb_version_hasmetauuid(sb) && > !uuid_equal(&tcarg->uuid, &sb->sb_uuid)) { > - __be32 feat; > + __u32 feat; Don't we normally use uint32_t now? > - /* Off by one.. */ > - crc = cpu_to_be32(crc + 1); > + /* Off by one, ignore endianness - we're just corrupting it. */ > + crc++; It also looks like crc should be an unsigned int or uint32_t while we are at it..