From: Mathieu Desnoyers Date: Mon, 23 May 2011 16:13:08 +0000 (-0400) Subject: prio heap API change (size of element) X-Git-Tag: v2.0-pre1~115 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=41affe319e5f4c049ba0ae427f485d8cdfb65488;p=lttng-modules.git prio heap API change (size of element) Signed-off-by: Mathieu Desnoyers --- diff --git a/lib/ringbuffer/ring_buffer_iterator.c b/lib/ringbuffer/ring_buffer_iterator.c index e8b042b0..ff9b8061 100644 --- a/lib/ringbuffer/ring_buffer_iterator.c +++ b/lib/ringbuffer/ring_buffer_iterator.c @@ -377,8 +377,7 @@ int channel_iterator_init(struct channel *chan) INIT_LIST_HEAD(&chan->iter.empty_head); ret = heap_init(&chan->iter.heap, - num_possible_cpus() - * sizeof(struct lib_ring_buffer *), + num_possible_cpus(), GFP_KERNEL, buf_is_higher); if (ret) return ret;