/* Each &struct drbd_tl_epoch has a circular double linked list of requests attached.  */
static int tl_init(struct drbd_conf *mdev)
/* Each &struct drbd_tl_epoch has a circular double linked list of requests attached.  */
static int tl_init(struct drbd_conf *mdev)
{
	struct drbd_tl_epoch *b;
	b = kmalloc(sizeof(struct drbd_tl_epoch), GFP_KERNEL);
	if (!b)
		return 0;
	INIT_LIST_HEAD(&b->requests);
	INIT_LIST_HEAD(&b->w.list);
	b->next = NULL;
	b->br_number = 4711;
	b->n_req = 0;
	b->w.cb = NULL;
	mdev->oldest_tle = b;
	mdev->newest_tle = b;
	INIT_LIST_HEAD(&mdev->out_of_sequence_requests);
	mdev->tl_hash = NULL;
	mdev->tl_hash_s = 0;
	return 1;
}