Re: [PATCH v2 1/1] ftrace: do not update max buffer with no users

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Steven Rostedt <rostedt@...>
Cc: <linux-kernel@...>, Andrew Morton <akpm@...>, Thomas Gleixner <tglx@...>, Pekka Paalanen <pq@...>, Frederic Weisbecker <fweisbec@...>, Steven Rostedt <srostedt@...>
Date: Thursday, November 13, 2008 - 9:19 am

* Steven Rostedt wrote:

> The line count is very misleading. The 83 insertions and deletions where

but that indentation is completely unnecessary:

> - ret = ring_buffer_resize(max_tr.buffer, val);

the obvious solution is to add this to ring_buffer_resize():

if (!buffer)
return size;

resizing a non-existent buffer should succeed. A two-liner patch. Not
160 lines of flux.

Really, you need to think _hard_ how to avoid invasive-looking changes
in late -rc's, because every extra line to review uses up precious
review resources.

Ingo
--

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH v2 1/1] ftrace: do not update max buffer with no ..., Ingo Molnar, (Thu Nov 13, 9:19 am)