From 7cf562360cdc18fe15daad58461e3caa63f0583b Mon Sep 17 00:00:00 2001 From: Frank Zago Date: Tue, 2 Aug 2016 14:24:23 -0500 Subject: [PATCH] LU-8471 obdclass: restore EXPORT_SYMBOL for lu_ref* functions LU-5829 removed a lot of EXPORT_SYMBOL, including for the lu_ref_* functions. As these functions are only compiled in when the --enable-lu_ref is passed to configure, the breakage was missed. This patch restores the missing EXPORT_SYMBOLS that were present, except for lu_ref_print and lu_ref_is_marker which are only used in the obdclass module. Test-Parameters: trivial Signed-off-by: Frank Zago Change-Id: I16e6065b75c568a18386c0f0a746484fdad38d6e Reviewed-on: http://review.whamcloud.com/21640 Reviewed-by: Andrew Perepechko Tested-by: Jenkins Tested-by: Maloo Reviewed-by: John L. Hammond Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- lustre/obdclass/lu_ref.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lustre/obdclass/lu_ref.c b/lustre/obdclass/lu_ref.c index 4ebb29b..aee9cf8 100644 --- a/lustre/obdclass/lu_ref.c +++ b/lustre/obdclass/lu_ref.c @@ -135,6 +135,7 @@ void lu_ref_init_loc(struct lu_ref *ref, const char *func, const int line) list_add(&ref->lf_linkage, &lu_ref_refs); spin_unlock(&lu_ref_refs_guard); } +EXPORT_SYMBOL(lu_ref_init_loc); void lu_ref_fini(struct lu_ref *ref) { @@ -146,6 +147,7 @@ void lu_ref_fini(struct lu_ref *ref) list_del_init(&ref->lf_linkage); spin_unlock(&lu_ref_refs_guard); } +EXPORT_SYMBOL(lu_ref_fini); static struct lu_ref_link *lu_ref_add_context(struct lu_ref *ref, int flags, @@ -183,6 +185,7 @@ void lu_ref_add(struct lu_ref *ref, const char *scope, const void *source) might_sleep(); lu_ref_add_context(ref, GFP_IOFS, scope, source); } +EXPORT_SYMBOL(lu_ref_add); void lu_ref_add_at(struct lu_ref *ref, struct lu_ref_link *link, const char *scope, const void *source) @@ -195,6 +198,7 @@ void lu_ref_add_at(struct lu_ref *ref, struct lu_ref_link *link, ref->lf_refs++; spin_unlock(&ref->lf_guard); } +EXPORT_SYMBOL(lu_ref_add_at); /** * Version of lu_ref_add() to be used in non-blockable contexts. @@ -204,6 +208,7 @@ void lu_ref_add_atomic(struct lu_ref *ref, const char *scope, { lu_ref_add_context(ref, GFP_ATOMIC, scope, source); } +EXPORT_SYMBOL(lu_ref_add_atomic); static inline int lu_ref_link_eq(const struct lu_ref_link *link, const char *scope, const void *source) @@ -257,6 +262,7 @@ void lu_ref_del(struct lu_ref *ref, const char *scope, const void *source) spin_unlock(&ref->lf_guard); } } +EXPORT_SYMBOL(lu_ref_del); void lu_ref_set_at(struct lu_ref *ref, struct lu_ref_link *link, const char *scope, @@ -269,6 +275,7 @@ void lu_ref_set_at(struct lu_ref *ref, struct lu_ref_link *link, link->ll_source = source1; spin_unlock(&ref->lf_guard); } +EXPORT_SYMBOL(lu_ref_set_at); void lu_ref_del_at(struct lu_ref *ref, struct lu_ref_link *link, const char *scope, const void *source) @@ -281,6 +288,7 @@ void lu_ref_del_at(struct lu_ref *ref, struct lu_ref_link *link, ref->lf_refs--; spin_unlock(&ref->lf_guard); } +EXPORT_SYMBOL(lu_ref_del_at); #ifdef CONFIG_PROC_FS -- 1.8.3.1