Commit 13c713a0 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Drop pointless template structure.

parent 4b528257
......@@ -688,9 +688,9 @@ SMP_Init(void)
lck_smp = Lck_CreateClass("smp");
CLI_AddFuncs(debug_cmds);
smp_oc_realmethods = SML_methods;
smp_oc_realmethods.objupdatemeta = smp_oc_methods.objupdatemeta;
smp_oc_realmethods.objfree = smp_oc_methods.objfree;
smp_oc_realmethods.objtouch = NULL;
smp_oc_realmethods.objupdatemeta = smp_oc_objupdatemeta;
smp_oc_realmethods.objfree = smp_oc_objfree;
}
/*--------------------------------------------------------------------
......
......@@ -307,8 +307,9 @@ void smp_new_seg(struct smp_sc *sc);
void smp_close_seg(struct smp_sc *sc, struct smp_seg *sg);
void smp_init_oc(struct objcore *oc, struct smp_seg *sg, unsigned objidx);
void smp_save_segs(struct smp_sc *sc);
extern const struct obj_methods smp_oc_methods;
storage_getobj_f smp_sml_getobj;
void smp_oc_objupdatemeta(struct worker *, struct objcore *);
void smp_oc_objfree(struct worker *, struct objcore *);
/* storage_persistent_subr.c */
......
......@@ -453,7 +453,7 @@ smp_sml_getobj(struct worker *wrk, struct objcore *oc)
return (o);
}
static void __match_proto__(objupdatemeta_f)
void __match_proto__(objupdatemeta_f)
smp_oc_objupdatemeta(struct worker *wrk, struct objcore *oc)
{
struct smp_seg *sg;
......@@ -478,7 +478,7 @@ smp_oc_objupdatemeta(struct worker *wrk, struct objcore *oc)
}
}
static void __match_proto__(objfree_f)
void __match_proto__(objfree_f)
smp_oc_objfree(struct worker *wrk, struct objcore *oc)
{
struct smp_seg *sg;
......@@ -509,11 +509,6 @@ smp_oc_objfree(struct worker *wrk, struct objcore *oc)
memset(oc->stobj, 0, sizeof oc->stobj);
}
const struct obj_methods smp_oc_methods = {
.objupdatemeta = smp_oc_objupdatemeta,
.objfree = smp_oc_objfree,
};
/*--------------------------------------------------------------------*/
void
......
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