Re: [PATCH 2/2] tracing: Do not copy hash if O_TRUNC is set

2014-06-11 Thread Steven Rostedt
On Wed, 11 Jun 2014 17:06:54 +0900 Namhyung Kim wrote: > When a filter file is open for writing and O_TRUNC is set, there's no > need to copy and free the filter entries. > Nice cleanup. I'll add it for 3.17. Thanks, -- Steve > Signed-off-by: Namhyung Kim > --- > kernel/trace/ftrace.c |

[PATCH 2/2] tracing: Do not copy hash if O_TRUNC is set

2014-06-11 Thread Namhyung Kim
When a filter file is open for writing and O_TRUNC is set, there's no need to copy and free the filter entries. Signed-off-by: Namhyung Kim --- kernel/trace/ftrace.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c

[PATCH 2/2] tracing: Do not copy hash if O_TRUNC is set

2014-06-11 Thread Namhyung Kim
When a filter file is open for writing and O_TRUNC is set, there's no need to copy and free the filter entries. Signed-off-by: Namhyung Kim namhy...@kernel.org --- kernel/trace/ftrace.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/kernel/trace/ftrace.c

Re: [PATCH 2/2] tracing: Do not copy hash if O_TRUNC is set

2014-06-11 Thread Steven Rostedt
On Wed, 11 Jun 2014 17:06:54 +0900 Namhyung Kim namhy...@kernel.org wrote: When a filter file is open for writing and O_TRUNC is set, there's no need to copy and free the filter entries. Nice cleanup. I'll add it for 3.17. Thanks, -- Steve Signed-off-by: Namhyung Kim namhy...@kernel.org