/* This routine is called to indicate that the described extent is to be logged as having been freed. It should be called once for each extent freed.  */
void xfs_trans_log_efd_extent(xfs_trans_t *tp, xfs_efd_log_item_t *efdp, xfs_fsblock_t start_block, xfs_extlen_t ext_len)
/* This routine is called to indicate that the described extent is to be logged as having been freed. It should be called once for each extent freed.  */
void xfs_trans_log_efd_extent(xfs_trans_t *tp, xfs_efd_log_item_t *efdp, xfs_fsblock_t start_block, xfs_extlen_t ext_len)
{
	xfs_log_item_desc_t	*lidp;
	uint			next_extent;
	xfs_extent_t		*extp;
	lidp = xfs_trans_find_item(tp, (xfs_log_item_t*)efdp);
	ASSERT(lidp != NULL);
	tp->t_flags |= XFS_TRANS_DIRTY;
	lidp->lid_flags |= XFS_LID_DIRTY;
	next_extent = efdp->efd_next_extent;
	ASSERT(next_extent < efdp->efd_format.efd_nextents);
	extp = &(efdp->efd_format.efd_extents[next_extent]);
	extp->ext_start = start_block;
	extp->ext_len = ext_len;
	efdp->efd_next_extent++;
}