/* Update counters atomically now that memcpy is done.  */
static void xlog_state_finish_copy(xlog_t *log, xlog_in_core_t *iclog, int record_cnt, int copy_bytes)
/* Update counters atomically now that memcpy is done.  */
static void xlog_state_finish_copy(xlog_t *log, xlog_in_core_t *iclog, int record_cnt, int copy_bytes)
{
	spin_lock(&log->l_icloglock);
	be32_add_cpu(&iclog->ic_header.h_num_logops, record_cnt);
	iclog->ic_offset += copy_bytes;
	spin_unlock(&log->l_icloglock);
}