Prev: [PATCH 1/2] scsi: Add lockdep annotations to SAS sysfs attributes.
Next: slub: __kmalloc_node_track_caller should trace kmalloc_large_node case
From: shenghui on 11 Apr 2010 01:30 I noticed inappropriate substraction on variable tracing_pages_allocated in trace_free_page()in 2.6.27.y series (from 2.6.27 to 2.6.27.46) kernel. Signed-off-by: Wang Sheng-Hui <crosslonelyover(a)gmail.com> --- kernel/trace/trace.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 8f3fb3d..dfe3995 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -3018,7 +3018,6 @@ static int trace_free_page(void) ClearPageLRU(page); list_del(&page->lru); tracing_pages_allocated--; - tracing_pages_allocated--; __free_page(page); tracing_reset(data); @@ -3036,6 +3035,7 @@ static int trace_free_page(void) page = list_entry(p, struct page, lru); ClearPageLRU(page); list_del(&page->lru); + tracing_pages_allocated--; __free_page(page); tracing_reset(data); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |