mm, page_owner: convert page_owner_inited to static key
[linux-2.6-block.git] / mm / vmstat.c
index 72c17981cb70dc8c24530c4fed915a10392ac8b6..69ce64f7b8d76de74991638730f825855f7a26d2 100644 (file)
@@ -1120,7 +1120,7 @@ static void pagetypeinfo_showmixedcount(struct seq_file *m, pg_data_t *pgdat)
 #ifdef CONFIG_PAGE_OWNER
        int mtype;
 
-       if (!page_owner_inited)
+       if (!static_branch_unlikely(&page_owner_inited))
                return;
 
        drain_all_pages(NULL);