Commit 3ddca06f authored by Oleg Drokin's avatar Oleg Drokin Committed by Greg Kroah-Hartman

staging/lustre/lov: Remove unused lov_lsm_decref()

Also lov_lsm_addref is only used in the file it is defined,
so make it static
Signed-off-by: default avatarOleg Drokin <green@linuxhacker.ru>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 88bc797c
...@@ -637,9 +637,6 @@ struct lov_io_sub *lov_page_subio(const struct lu_env *env, ...@@ -637,9 +637,6 @@ struct lov_io_sub *lov_page_subio(const struct lu_env *env,
struct lov_io *lio, struct lov_io *lio,
const struct cl_page_slice *slice); const struct cl_page_slice *slice);
void lov_lsm_decref(struct lov_object *lov, struct lov_stripe_md *lsm);
struct lov_stripe_md *lov_lsm_addref(struct lov_object *lov);
#define lov_foreach_target(lov, var) \ #define lov_foreach_target(lov, var) \
for (var = 0; var < lov_targets_nr(lov); ++var) for (var = 0; var < lov_targets_nr(lov); ++var)
......
...@@ -909,7 +909,7 @@ struct lu_object *lov_object_alloc(const struct lu_env *env, ...@@ -909,7 +909,7 @@ struct lu_object *lov_object_alloc(const struct lu_env *env,
return obj; return obj;
} }
struct lov_stripe_md *lov_lsm_addref(struct lov_object *lov) static struct lov_stripe_md *lov_lsm_addref(struct lov_object *lov)
{ {
struct lov_stripe_md *lsm = NULL; struct lov_stripe_md *lsm = NULL;
...@@ -924,17 +924,6 @@ struct lov_stripe_md *lov_lsm_addref(struct lov_object *lov) ...@@ -924,17 +924,6 @@ struct lov_stripe_md *lov_lsm_addref(struct lov_object *lov)
return lsm; return lsm;
} }
void lov_lsm_decref(struct lov_object *lov, struct lov_stripe_md *lsm)
{
if (lsm == NULL)
return;
CDEBUG(D_INODE, "lsm %p decref %d by %p.\n",
lsm, atomic_read(&lsm->lsm_refc), current);
lov_free_memmd(&lsm);
}
struct lov_stripe_md *lov_lsm_get(struct cl_object *clobj) struct lov_stripe_md *lov_lsm_get(struct cl_object *clobj)
{ {
struct lu_object *luobj; struct lu_object *luobj;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment