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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Jan 2021 12:55:19 +0000 (13:55 +0100)
commitc11f7749f1fc9bad6b1f0e073de08fa996f21cc3
tree5eebab63460739f3d8c39d7ef81a9e640731a19b
parentc6fd968f58439398b765300aecd7758d501ee49c
mm/page_alloc: add a missing mm_page_alloc_zone_locked() tracepoint

commit ce8f86ee94fabcc98537ddccd7e82cfd360a4dc5 upstream.

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>
Cc: Ivan Babrou <ivan@cloudflare.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
mm/page_alloc.c