md: fix super_offset endianness in super_1_rdev_size_change
authorJason Yan <yanaijie@huawei.com>
Fri, 10 Mar 2017 03:27:23 +0000 (11:27 +0800)
committerShaohua Li <shli@fb.com>
Fri, 10 Mar 2017 20:54:37 +0000 (12:54 -0800)
commit3fb632e40d7667d8bedfabc28850ac06d5493f54
treeed78f6f9076799bf9d9c3ba1726512b3a75ba115
parent61eb2b43b99ebdc9bc6bc83d9792257b243e7cb3
md: fix super_offset endianness in super_1_rdev_size_change

The sb->super_offset should be big-endian, but the rdev->sb_start is in
host byte order, so fix this by adding cpu_to_le64.

Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md.c