#include <obd.h>
#include "llite_internal.h"
#include "vvp_internal.h"
+#include <linux/kallsyms.h>
/*****************************************************************************
*
.ldt_ctx_tags = LCT_CL_THREAD
};
+#ifndef HAVE_ACCOUNT_PAGE_DIRTIED_EXPORT
+unsigned int (*vvp_account_page_dirtied)(struct page *page,
+ struct address_space *mapping);
+#endif
+
/**
* A mutex serializing calls to vvp_inode_fini() under extreme memory
* pressure, when environments cannot be allocated.
if (rc != 0)
goto out_kmem;
+#ifndef HAVE_ACCOUNT_PAGE_DIRTIED_EXPORT
+ /*
+ * Kernel v5.2-5678-gac1c3e4 no longer exports account_page_dirtied
+ */
+ vvp_account_page_dirtied = (void *)
+ kallsyms_lookup_name("account_page_dirtied");
+ BUG_ON(!vvp_account_page_dirtied);
+#endif
+
return 0;
out_kmem: