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.

[[email protected]: use IS_ENABLED() to suppress warning]

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Hailong liu <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Cc: Ivan Babrou <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

1 file changed