/* Returns: The page allocated, or NULL on error.  */
void* ring_buffer_alloc_read_page(struct ring_buffer *buffer)
/* Returns: The page allocated, or NULL on error.  */
void* ring_buffer_alloc_read_page(struct ring_buffer *buffer)
{
	struct buffer_data_page *bpage;
	unsigned long addr;
	addr = __get_free_page(GFP_KERNEL);
	if (!addr)
		return NULL;
	bpage = (void *)addr;
	rb_init_page(bpage);
	return bpage;
}