/* dead roots are old snapshots that need to be deleted. This allocates a dirty root struct and adds it into the list of dead roots that need to be deleted  */
int btrfs_add_dead_root(struct btrfs_root *root)
/* dead roots are old snapshots that need to be deleted. This allocates a dirty root struct and adds it into the list of dead roots that need to be deleted  */
int btrfs_add_dead_root(struct btrfs_root *root)
{
	mutex_lock(&root->fs_info->trans_mutex);
	list_add(&root->root_list, &root->fs_info->dead_roots);
	mutex_unlock(&root->fs_info->trans_mutex);
	return 0;
}