From: Shaun Tancheff Date: Tue, 3 Mar 2020 01:17:18 +0000 (-0600) Subject: LU-13209 build: Fix vvp_account_page_dirtied X-Git-Tag: 2.13.53~141 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=bbaef062a9d158ee5a11d470d3c5e56ff1e4a55e;p=fs%2Flustre-release.git LU-13209 build: Fix vvp_account_page_dirtied 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 Change-Id: Iae0a3af1b091165423a2bb24a9159a7af8ab3cbe Reviewed-on: https://review.whamcloud.com/37778 Reviewed-by: Wang Shilong Tested-by: jenkins Reviewed-by: Sebastien Buisson Tested-by: Maloo Reviewed-by: James Simmons Tested-by: James Simmons Reviewed-by: Oleg Drokin --- diff --git a/lustre/llite/vvp_dev.c b/lustre/llite/vvp_dev.c index bec0f9e..58efc98 100644 --- a/lustre/llite/vvp_dev.c +++ b/lustre/llite/vvp_dev.c @@ -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. diff --git a/lustre/llite/vvp_internal.h b/lustre/llite/vvp_internal.h index 2302957..3062208 100644 --- a/lustre/llite/vvp_internal.h +++ b/lustre/llite/vvp_internal.h @@ -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;