]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: Do not copy hash if O_TRUNC is set
authorNamhyung Kim <namhyung@kernel.org>
Wed, 11 Jun 2014 08:06:54 +0000 (17:06 +0900)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 1 Jul 2014 11:13:41 +0000 (07:13 -0400)
commitada70e68408d845f680350ef037a7af3fc967f75
tree8344a51e21bb16d6823a94c769290bfc6645385e
parent02cc90bc807386556a1db8173e08fdd11de9b402
ftrace: Do not copy hash if O_TRUNC is set

When a filter file is open for writing and O_TRUNC is set, there's no
need to copy and free the filter entries.

Link: http://lkml.kernel.org/p/1402474014-28655-2-git-send-email-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ftrace.c