mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git
synced 2024-11-14 21:33:44 +08:00
mkfs.f2fs: use correct endian conversion for writing lpf inode
The conversion between cpu and little endian is incorrect. Signed-off-by: Daeho Jeong <daehojeong@google.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
9ad0ad3a7f
commit
662e619cfa
@ -1546,8 +1546,8 @@ static int f2fs_write_lpf_inode(void)
|
||||
|
||||
f2fs_init_inode(sb, raw_node, c.lpf_ino, mkfs_time, 0x41c0);
|
||||
|
||||
raw_node->i.i_pino = le32_to_cpu(sb->root_ino);
|
||||
raw_node->i.i_namelen = le32_to_cpu(strlen(LPF));
|
||||
raw_node->i.i_pino = sb->root_ino;
|
||||
raw_node->i.i_namelen = cpu_to_le32(strlen(LPF));
|
||||
memcpy(raw_node->i.i_name, LPF, strlen(LPF));
|
||||
|
||||
node_blkaddr = alloc_next_free_block(CURSEG_HOT_NODE);
|
||||
|
Loading…
Reference in New Issue
Block a user