From: KOSAKI Motohiro Date: Tue, 12 Nov 2013 23:08:19 +0000 (-0800) Subject: mm: get rid of unnecessary overhead of trace_mm_page_alloc_extfrag() X-Git-Tag: v3.13-rc1~106^2~193 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52c8f6a5aeb0bdd396849ecaa72d96f8175528f5;p=pandora-kernel.git mm: get rid of unnecessary overhead of trace_mm_page_alloc_extfrag() In general, every tracepoint should be zero overhead if it is disabled. However, trace_mm_page_alloc_extfrag() is one of exception. It evaluate "new_type == start_migratetype" even if tracepoint is disabled. However, the code can be moved into tracepoint's TP_fast_assign() and TP_fast_assign exist exactly such purpose. This patch does it. Signed-off-by: KOSAKI Motohiro Acked-by: Mel Gorman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed