From 7fb975abc65d9723d4dc04efacca789ec83760c1 Mon Sep 17 00:00:00 2001 From: Jeff Mahoney Date: Fri, 5 Jun 2015 23:34:29 +0200 Subject: [PATCH] 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 Signed-off-by: David Sterba --- btrfs-convert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/btrfs-convert.c b/btrfs-convert.c index 7d22b1f3..58468ed5 100644 --- a/btrfs-convert.c +++ b/btrfs-convert.c @@ -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),