diff mbox series

[02/26] btrfs-progs: remove useless add_root_to_dirty_list call in mkfs

Message ID ff68c401f848ac47437f047c9797c9e695affb2c.1682799405.git.josef@toxicpanda.com (mailing list archive)
State New, archived
Headers show
Series btrfs-progs: sync ctree.c into btrfs-progs | expand

Commit Message

Josef Bacik April 29, 2023, 8:19 p.m. UTC
We are calling this when creating the UUID tree, however when we create
the tree it inserts the root item into the tree_root, so this call is
superfluous.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
---
 mkfs/main.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/mkfs/main.c b/mkfs/main.c
index 4856cf96..418c721c 100644
--- a/mkfs/main.c
+++ b/mkfs/main.c
@@ -789,7 +789,6 @@  static int create_uuid_tree(struct btrfs_trans_handle *trans)
 		goto out;
 	}
 
-	add_root_to_dirty_list(root);
 	fs_info->uuid_root = root;
 	ret = btrfs_uuid_tree_add(trans, fs_info->fs_root->root_item.uuid,
 				  BTRFS_UUID_KEY_SUBVOL,