From: Mathieu Desnoyers Date: Mon, 1 Jul 2013 17:18:54 +0000 (-0400) Subject: Cleanup: lib_ring_buffer_switch_new_end() only calls subbuffer_set_data_size() X-Git-Tag: v2.3.0-rc1~14 X-Git-Url: http://git.lttng.org/?a=commitdiff_plain;ds=sidebyside;h=3962118d1f08fd33ad6adfad10452962c3662bd9;hp=3962118d1f08fd33ad6adfad10452962c3662bd9;p=lttng-ust.git Cleanup: lib_ring_buffer_switch_new_end() only calls subbuffer_set_data_size() lib_ring_buffer_switch_new_end() is always called when an event exactly fills a sub-buffer, which makes padding_size always 0. However, there is one side-effect that lib_ring_buffer_switch_new_end() needs to have: it calls subbuffer_set_data_size() to update the size of the data to be read from the sub-buffer. Signed-off-by: Mathieu Desnoyers ---