ftrace: Do not copy old hash when resetting
authorWang Nan <wangnan0@huawei.com>
Tue, 15 Jul 2014 00:40:20 +0000 (08:40 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 18 Jul 2014 21:47:04 +0000 (17:47 -0400)
commitb972cc58ced01ba2cf1f67b36bcfbb3ed4fa706e
tree7821d8641b223789af28963090ab9d6f7a0d377d
parent6508fa761c330a1d2b4ae36199d08dbcb70e3ddb
ftrace: Do not copy old hash when resetting

Do not waste time copying the old hash if the hash is going to be
reset. Just allocate a new hash and free the old one, as that is
the same result as copying te old one and then resetting it.

Link: http://lkml.kernel.org/p/1405384820-48837-1-git-send-email-wangnan0@huawei.com
Signed-off-by: Wang Nan <wangnan0@huawei.com>
[ SDR: Removed unused ftrace_filter_reset() function ]
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ftrace.c