From 0851f4563b9e0770d4b3c071e605cb5e150c6ed3 Mon Sep 17 00:00:00 2001 From: Wang Sheng-Hui Date: Tue, 13 Apr 2010 21:04:10 +0800 Subject: [PATCH] trace: Fix inappropriate substraction on tracing_pages_allocated in trace_free_page() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit [No matching upstream git commit id as it was fixed differently due to a rewrite of the tracing code there.] For normal case, the code in trace_free_page() do once more substraction on tracing_pages_allocated, but for CONFIG_TRACER_MAX_TRACE  it doesn't take the freed page into account. That's not consistent with trace_alloc_page(). Well, for there are no message related with this, so we cannot observe its incorrect state when the kernel doesn't define "CONFIG_TRACER_MAX_TRACE". If you add some pr_info() as trace_alloc_page(), you may notice it. Cc: Steven Rostedt Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Li Zefan Signed-off-by: Wang Sheng-Hui Signed-off-by: Greg Kroah-Hartman --- Reading git-format-patch failed