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)
committerWilly Tarreau <w@1wt.eu>
Thu, 2 Nov 2017 06:16:19 +0000 (07:16 +0100)
commit7719043b415b16e1d8ced517bc581375693d070b
treea6573186e9649cfa2ab0292b2f586599544e16a3
parent634fd953630e9ea59072e0d44c614d8b6446d93c
md: fix super_offset endianness in super_1_rdev_size_change

commit 3fb632e40d7667d8bedfabc28850ac06d5493f54 upstream.

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>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/md/md.c