/* This is called to fill in the vector of log iovecs for the given efi log item. We use only 1 iovec, and we point that at the efi_log_format structure embedded in the efi item. It is at this point that we assert that all of the extent slots in the efi item have been filled.  */
STATIC void xfs_efi_item_format(xfs_efi_log_item_t *efip, xfs_log_iovec_t *log_vector)
/* This is called to fill in the vector of log iovecs for the given efi log item. We use only 1 iovec, and we point that at the efi_log_format structure embedded in the efi item. It is at this point that we assert that all of the extent slots in the efi item have been filled.  */
STATIC void xfs_efi_item_format(xfs_efi_log_item_t *efip, xfs_log_iovec_t *log_vector)
{
	uint	size;
	ASSERT(efip->efi_next_extent == efip->efi_format.efi_nextents);
	efip->efi_format.efi_type = XFS_LI_EFI;
	size = sizeof(xfs_efi_log_format_t);
	size += (efip->efi_format.efi_nextents - 1) * sizeof(xfs_extent_t);
	efip->efi_format.efi_size = 1;
	log_vector->i_addr = (xfs_caddr_t)&(efip->efi_format);
	log_vector->i_len = size;
	XLOG_VEC_SET_TYPE(log_vector, XLOG_REG_TYPE_EFI_FORMAT);
	ASSERT(size >= sizeof(xfs_efi_log_format_t));
}