Skip to content

Commit bbe3de2

Browse files
lynxeye-devtorvalds
authored andcommitted
mm/page_isolation: fix tracepoint to mirror check function behavior
Page isolation has not failed if the fin pfn extends beyond the end pfn and test_pages_isolated checks this correctly. Fix the tracepoint to report the same result as the actual check function. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Acked-by: Vlastimil Babka <vbabka@suse.cz> Cc: Joonsoo Kim <js1304@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 858eaaa commit bbe3de2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/trace/events/page_isolation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ TRACE_EVENT(test_pages_isolated,
2929

3030
TP_printk("start_pfn=0x%lx end_pfn=0x%lx fin_pfn=0x%lx ret=%s",
3131
__entry->start_pfn, __entry->end_pfn, __entry->fin_pfn,
32-
__entry->end_pfn == __entry->fin_pfn ? "success" : "fail")
32+
__entry->end_pfn <= __entry->fin_pfn ? "success" : "fail")
3333
);
3434

3535
#endif /* _TRACE_PAGE_ISOLATION_H */

0 commit comments

Comments
 (0)