Whamcloud - gitweb
LU-13209 build: Fix vvp_account_page_dirtied 78/37778/3
authorShaun Tancheff <shaun.tancheff@hpe.com>
Tue, 3 Mar 2020 01:17:18 +0000 (19:17 -0600)
committerOleg Drokin <green@whamcloud.com>
Wed, 4 Mar 2020 22:41:20 +0000 (22:41 +0000)
Fix compile error vvp_account_page_dirtied undefined

Fixes: 788e464a72 ("LU-13288 llite: Find account_page_dirtied on module init")
Cray-bug-id: LUS-8472
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: Iae0a3af1b091165423a2bb24a9159a7af8ab3cbe
Reviewed-on: https://review.whamcloud.com/37778
Reviewed-by: Wang Shilong <wshilong@ddn.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/vvp_dev.c
lustre/llite/vvp_internal.h

index bec0f9e..58efc98 100644 (file)
@@ -266,6 +266,11 @@ struct lu_device_type vvp_device_type = {
         .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.
index 2302957..3062208 100644 (file)
@@ -320,8 +320,8 @@ int vvp_global_init(void);
 void vvp_global_fini(void);
 
 #ifndef HAVE_ACCOUNT_PAGE_DIRTIED_EXPORT
-typedef unsigned int (*vvp_account_page_dirtied)(struct page *page,
-                                                struct address_space *mapping);
+extern unsigned int (*vvp_account_page_dirtied)(struct page *page,
+                                               struct address_space *mapping);
 #endif
 
 extern const struct file_operations vvp_dump_pgcache_file_ops;