kernel/include/linux/page_pinner.h
.. .. @@ -41,6 +41,9 @@ 41 41 42 42 static inline void page_pinner_put_page(struct page *page) 43 43 { 44 + if (!static_branch_unlikely(&page_pinner_inited))45 + return;46 +44 47 if (!static_branch_unlikely(&failure_tracking)) 45 48 return; 46 49 .. .. @@ -49,6 +52,9 @@ 49 52 50 53 static inline void page_pinner_failure_detect(struct page *page) 51 54 { 55 + if (!static_branch_unlikely(&page_pinner_inited))56 + return;57 +52 58 if (!static_branch_unlikely(&failure_tracking)) 53 59 return; 54 60