mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-15 10:55:51 +00:00
btrfs-progs: convert: fix typo in btrfs_insert_dir_item call
EXT2_FT_REG_FILE and BTRFS_FT_REG_FILE happen to share the same value, but btrfs_insert_dir_item expects the btrfs version. Signed-off-by: Jeff Mahoney <jeffm@suse.com> Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
parent
626fee6b3b
commit
7fb975abc6
@ -1373,7 +1373,7 @@ next:
|
||||
btrfs_set_key_type(&location, BTRFS_INODE_ITEM_KEY);
|
||||
ret = btrfs_insert_dir_item(trans, root, name, strlen(name),
|
||||
btrfs_root_dirid(&root->root_item),
|
||||
&location, EXT2_FT_REG_FILE, objectid);
|
||||
&location, BTRFS_FT_REG_FILE, objectid);
|
||||
if (ret)
|
||||
goto fail;
|
||||
ret = btrfs_insert_inode_ref(trans, root, name, strlen(name),
|
||||
|
Loading…
Reference in New Issue
Block a user