treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / mm / debug_page_ref.c
blobf3b2c9d3ece256a4c2122c2d2df4120e2802c6eb
1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/mm_types.h>
3 #include <linux/tracepoint.h>
5 #define CREATE_TRACE_POINTS
6 #include <trace/events/page_ref.h>
8 void __page_ref_set(struct page *page, int v)
10 trace_page_ref_set(page, v);
12 EXPORT_SYMBOL(__page_ref_set);
13 EXPORT_TRACEPOINT_SYMBOL(page_ref_set);
15 void __page_ref_mod(struct page *page, int v)
17 trace_page_ref_mod(page, v);
19 EXPORT_SYMBOL(__page_ref_mod);
20 EXPORT_TRACEPOINT_SYMBOL(page_ref_mod);
22 void __page_ref_mod_and_test(struct page *page, int v, int ret)
24 trace_page_ref_mod_and_test(page, v, ret);
26 EXPORT_SYMBOL(__page_ref_mod_and_test);
27 EXPORT_TRACEPOINT_SYMBOL(page_ref_mod_and_test);
29 void __page_ref_mod_and_return(struct page *page, int v, int ret)
31 trace_page_ref_mod_and_return(page, v, ret);
33 EXPORT_SYMBOL(__page_ref_mod_and_return);
34 EXPORT_TRACEPOINT_SYMBOL(page_ref_mod_and_return);
36 void __page_ref_mod_unless(struct page *page, int v, int u)
38 trace_page_ref_mod_unless(page, v, u);
40 EXPORT_SYMBOL(__page_ref_mod_unless);
41 EXPORT_TRACEPOINT_SYMBOL(page_ref_mod_unless);
43 void __page_ref_freeze(struct page *page, int v, int ret)
45 trace_page_ref_freeze(page, v, ret);
47 EXPORT_SYMBOL(__page_ref_freeze);
48 EXPORT_TRACEPOINT_SYMBOL(page_ref_freeze);
50 void __page_ref_unfreeze(struct page *page, int v)
52 trace_page_ref_unfreeze(page, v);
54 EXPORT_SYMBOL(__page_ref_unfreeze);
55 EXPORT_TRACEPOINT_SYMBOL(page_ref_unfreeze);