/*
* Kernels 4.2 - 4.5 pass memcg argument to account_page_dirtied()
- * Kernel v5.2-5678-gac1c3e4 no longer exports account_page_dirtied
+ * Kernel v5.2-5678-gac1c3e4 no longer exports account_page_dirtied
*/
static inline void ll_account_page_dirtied(struct page *page,
struct address_space *mapping)
account_page_dirtied(page, mapping, memcg);
mem_cgroup_end_page_stat(memcg);
-#elif defined HAVE_ACCOUNT_PAGE_DIRTIED
- account_page_dirtied(page, mapping, memcg);
+#elif defined(HAVE_ACCOUNT_PAGE_DIRTIED_EXPORT)
+ account_page_dirtied(page, mapping);
#else
- typedef unsigned int (dirtied_t)(struct page *pg,
- struct address_space *as);
- const char *symbol = "account_page_dirtied";
- static dirtied_t *dirtied = NULL;
-
- if (!dirtied)
- dirtied = (dirtied_t *)symbol_get(symbol);
-
- if (dirtied)
- dirtied(page, mapping);
+ vvp_account_page_dirtied(page, mapping);
#endif
}