]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/xfs/xfs_alloc.c
xfs: byteswap constants instead of variables
[mirror_ubuntu-bionic-kernel.git] / fs / xfs / xfs_alloc.c
index 95862bbff56bf0cf8c82d4e88178dc43408866d7..3ad3ab9f56cba0067ba9cda37f386cd3f5bb11bc 100644 (file)
@@ -2127,7 +2127,7 @@ xfs_read_agf(
         * Validate the magic number of the agf block.
         */
        agf_ok =
-               be32_to_cpu(agf->agf_magicnum) == XFS_AGF_MAGIC &&
+               agf->agf_magicnum == cpu_to_be32(XFS_AGF_MAGIC) &&
                XFS_AGF_GOOD_VERSION(be32_to_cpu(agf->agf_versionnum)) &&
                be32_to_cpu(agf->agf_freeblks) <= be32_to_cpu(agf->agf_length) &&
                be32_to_cpu(agf->agf_flfirst) < XFS_AGFL_SIZE(mp) &&