/* This is called to fill in the vector of log iovecs for the given efd log item. We use only 1 iovec, and we point that at the efd_log_format structure embedded in the efd item. It is at this point that we assert that all of the extent slots in the efd item have been filled.  */
STATIC void xfs_efd_item_format(xfs_efd_log_item_t *efdp, xfs_log_iovec_t *log_vector)
/* This is called to fill in the vector of log iovecs for the given efd log item. We use only 1 iovec, and we point that at the efd_log_format structure embedded in the efd item. It is at this point that we assert that all of the extent slots in the efd item have been filled.  */
STATIC void xfs_efd_item_format(xfs_efd_log_item_t *efdp, xfs_log_iovec_t *log_vector)
{
	uint	size;
	ASSERT(efdp->efd_next_extent == efdp->efd_format.efd_nextents);
	efdp->efd_format.efd_type = XFS_LI_EFD;
	size = sizeof(xfs_efd_log_format_t);
	size += (efdp->efd_format.efd_nextents - 1) * sizeof(xfs_extent_t);
	efdp->efd_format.efd_size = 1;
	log_vector->i_addr = (xfs_caddr_t)&(efdp->efd_format);
	log_vector->i_len = size;
	XLOG_VEC_SET_TYPE(log_vector, XLOG_REG_TYPE_EFD_FORMAT);
	ASSERT(size >= sizeof(xfs_efd_log_format_t));
}