Skip to content

Commit

Permalink
mm/page_isolation: fix tracepoint to mirror check function behavior
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Vlastimil Babka <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
lynxeye-dev authored and torvalds committed Apr 1, 2016
1 parent 858eaaa commit bbe3de2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/trace/events/page_isolation.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ TRACE_EVENT(test_pages_isolated,

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

#endif /* _TRACE_PAGE_ISOLATION_H */
Expand Down

0 comments on commit bbe3de2

Please sign in to comment.