]> 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)
commitf36fca6c90eb86b9e7ccc49a925705a8f14c316e
tree746400338dc8354894ea40f95bddee38400af84d
parent87769ffbad1a15e849b568d4bb3ecd9e274ee8b0
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