aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-03-03 19:51:40 -0500
committerSteven Rostedt <srostedt@redhat.com>2009-03-03 20:52:27 -0500
commit474d32b68d6d842f3e710e9ae9fe2568c53339f8 (patch)
tree674376b2f7a45cf6558879a4985398397dc96e79 /lib
parente3d6bf0a0781a269f34250fd41e0d3dbfe540cf1 (diff)
ring-buffer: make ring_buffer_read_page read from start on partial page
Impact: dont leave holes in read buffer page The ring_buffer_read_page swaps a given page with the reader page of the ring buffer, if certain conditions are set: 1) requested length is big enough to hold entire page data 2) a writer is not currently on the page 3) the page is not partially consumed. Instead of swapping with the supplied page. It copies the data to the supplied page instead. But currently the data is copied in the same offset as the source page. This causes a hole at the start of the reader page. This complicates the use of this function. Instead, it should copy the data at the beginning of the function and update the index fields accordingly. Other small clean ups are also done in this patch. Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions