/* Write region vectors to log. The write happens using the space reservation of the ticket (tic). It is not a requirement that all writes for a given transaction occur with one call to xfs_log_write().  */
int xfs_log_write(xfs_mount_t *mp, xfs_log_iovec_t reg[], int nentries, xfs_log_ticket_t tic, xfs_lsn_t *start_lsn)
/* Write region vectors to log. The write happens using the space reservation of the ticket (tic). It is not a requirement that all writes for a given transaction occur with one call to xfs_log_write().  */
int xfs_log_write(xfs_mount_t *mp, xfs_log_iovec_t reg[], int nentries, xfs_log_ticket_t tic, xfs_lsn_t *start_lsn)
{
	int	error;
	xlog_t *log = mp->m_log;
	if (XLOG_FORCED_SHUTDOWN(log))
		return XFS_ERROR(EIO);
	if ((error = xlog_write(mp, reg, nentries, tic, start_lsn, NULL, 0))) {
		xfs_force_shutdown(mp, SHUTDOWN_LOG_IO_ERROR);
	}
	return error;
}