]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8e5bc10cab8c06b6228da9a2ab9d59177230a5e9
treeed78f6f9076799bf9d9c3ba1726512b3a75ba115
parent9a339b69d201ad39ae77ee2101e8633b23b83c7f
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