mm/page_alloc: add a missing mm_page_alloc_zone_locked() tracepoint
authorHailong liu <liu.hailong6@zte.com.cn>
Tue, 12 Jan 2021 23:49:08 +0000 (15:49 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 13 Jan 2021 02:12:54 +0000 (18:12 -0800)
commitce8f86ee94fabcc98537ddccd7e82cfd360a4dc5
tree82be8e59d7134053e71f59fc28460916ac754689
parent8ff60eb052eeba95cfb3efe16b08c9199f8121cf
mm/page_alloc: add a missing mm_page_alloc_zone_locked() tracepoint

The trace point *trace_mm_page_alloc_zone_locked()* in __rmqueue() does
not currently cover all branches.  Add the missing tracepoint and check
the page before do that.

[akpm@linux-foundation.org: use IS_ENABLED() to suppress warning]

Link: https://lkml.kernel.org/r/20201228132901.41523-1-carver4lio@163.com
Signed-off-by: Hailong liu <liu.hailong6@zte.com.cn>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c