/* remove an ordered extent from the tree. No references are dropped but any waiters are woken.  */
int btrfs_remove_ordered_extent(struct inode *inode, struct btrfs_ordered_extent *entry)
/* remove an ordered extent from the tree. No references are dropped but any waiters are woken.  */
int btrfs_remove_ordered_extent(struct inode *inode, struct btrfs_ordered_extent *entry)
{
	struct btrfs_ordered_inode_tree *tree;
	int ret;
	tree = &BTRFS_I(inode)->ordered_tree;
	mutex_lock(&tree->mutex);
	ret = __btrfs_remove_ordered_extent(inode, entry);
	mutex_unlock(&tree->mutex);
	wake_up(&entry->wait);
	return ret;
}