tracing: fix ref count in splice pages
authorSteven Rostedt <srostedt@redhat.com>
Wed, 29 Apr 2009 04:16:21 +0000 (00:16 -0400)
committerIngo Molnar <mingo@elte.hu>
Wed, 29 Apr 2009 06:02:44 +0000 (08:02 +0200)
commit7267fa6819467669f5cc2ba81a615dcc88158b4b
tree281e3c2b9765c24364280f02fd9f9aa387c8aa6f
parent091069740304c979f957ceacec39c461d0192158
tracing: fix ref count in splice pages

The pages allocated for the splice binary buffer did not initialize
the ref count correctly. This caused pages not to be freed and causes
a drastic memory leak.

Thanks to logdev I was able to trace the tracer to find where the leak
was.

[ Impact: stop memory leak when using splice ]

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace.c