f2fs: fix crc endian conversion
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 19 Jun 2013 11:47:19 +0000 (20:47 +0900)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:43:52 +0000 (11:43 +0900)
commit31234470c78f7910fb112d2a3bdec3de37e41a08
treeb3c1152527611273b0f9f13d932b79e766d54325
parent66f0de06e9a181bcc659fc84b574a810c714a27f
f2fs: fix crc endian conversion

While calculating CRC for the checkpoint block, we use __u32, but when storing
the crc value to the disk, we use __le32.

Let's fix the inconsistency.

Reported-and-Tested-by: Oded Gabbay <ogabbay@advaoptical.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/checkpoint.c
fs/f2fs/f2fs.h