Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-8471 obdclass: restore EXPORT_SYMBOL for lu_ref* functions
[fs/lustre-release.git]
/
lustre
/
obdclass
/
lu_ref.c
diff --git
a/lustre/obdclass/lu_ref.c
b/lustre/obdclass/lu_ref.c
index
4ebb29b
..
aee9cf8
100644
(file)
--- 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);
}
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)
{
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);
}
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,
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);
}
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)
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);
}
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.
/**
* 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);
}
{
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)
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);
}
}
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,
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);
}
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)
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);
}
ref->lf_refs--;
spin_unlock(&ref->lf_guard);
}
+EXPORT_SYMBOL(lu_ref_del_at);
#ifdef CONFIG_PROC_FS
#ifdef CONFIG_PROC_FS