From: Chao Yu <yuch...@huawei.com> This patch fixes to handle missing endianness in f2fs_write_check_point_pack.
Signed-off-by: Chao Yu <yuch...@huawei.com> --- mkfs/f2fs_format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkfs/f2fs_format.c b/mkfs/f2fs_format.c index 93e9fea..4c3df96 100644 --- a/mkfs/f2fs_format.c +++ b/mkfs/f2fs_format.c @@ -783,7 +783,7 @@ static int f2fs_write_check_point_pack(void) for (j = 0; j < QUOTA_DATA(qtype); j++) { (sum_entry + off + j)->nid = sb->qf_ino[qtype]; - (sum_entry + off + j)->ofs_in_node = j; + (sum_entry + off + j)->ofs_in_node = cpu_to_le16(j); } off += QUOTA_DATA(qtype); } -- 2.14.1.145.gb3622a4ee ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel