/* ring_buffer_iter_empty - check if an iterator has no more to read @iter: The iterator to check  */
int ring_buffer_iter_empty(struct ring_buffer_iter *iter)
/* ring_buffer_iter_empty - check if an iterator has no more to read @iter: The iterator to check  */
int ring_buffer_iter_empty(struct ring_buffer_iter *iter)
{
	struct ring_buffer_per_cpu *cpu_buffer;
	cpu_buffer = iter->cpu_buffer;
	return iter->head_page == cpu_buffer->commit_page &&
		iter->head == rb_commit_index(cpu_buffer);
}