mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2025-02-20 02:40:49 +00:00
mkfs.f2fs: fix to handle endianness in f2fs_write_check_point_pack
This patch fixes to handle missing endianness in f2fs_write_check_point_pack. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
8a96b6a2bd
commit
f52987efb0
@ -784,7 +784,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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user