]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: fix endianness error when checking log block crc on big endian platforms
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 8 Feb 2016 00:03:58 +0000 (11:03 +1100)
committerroot <root@disappointment.disaster>
Mon, 8 Feb 2016 00:03:58 +0000 (11:03 +1100)
commit8dbcbf432096b7dcd7fcdee74c3bd5d256a343c8
tree746400338dc8354894ea40f95bddee38400af84d
parent4647c720fd42a03c69c68c022db398388a8936d5
xfs: fix endianness error when checking log block crc on big endian platforms

Since the checksum function and the field are both __le32, don't
perform endian conversion when comparing the two.  This fixes mount
failures on ppc64.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_log_recover.c