OSDN Git Service

ring-buffer: Have the shortest_full queue be the shortest not longest
[tomoyo/tomoyo-test1.git] / kernel / trace / ring_buffer.c
index 6b145d4..02db92c 100644 (file)
@@ -1011,7 +1011,7 @@ int ring_buffer_wait(struct trace_buffer *buffer, int cpu, int full)
                        nr_pages = cpu_buffer->nr_pages;
                        dirty = ring_buffer_nr_dirty_pages(buffer, cpu);
                        if (!cpu_buffer->shortest_full ||
-                           cpu_buffer->shortest_full < full)
+                           cpu_buffer->shortest_full > full)
                                cpu_buffer->shortest_full = full;
                        raw_spin_unlock_irqrestore(&cpu_buffer->reader_lock, flags);
                        if (!pagebusy &&