Commit d2257489 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

ObjSnipe() is a better name

parent 7ddc5950
......@@ -857,7 +857,7 @@ void ObjSetState(const struct objcore *, enum boc_state_e next);
void ObjWaitState(const struct objcore *, enum boc_state_e want);
void ObjTrimStore(struct worker *, struct objcore *);
void ObjTouch(struct worker *, struct objcore *, double now);
int ObjKill(const struct worker *, struct objcore *);
int ObjSnipe(const struct worker *, struct objcore *);
unsigned ObjGetXID(struct worker *, struct objcore *);
uint64_t ObjGetLen(struct worker *, struct objcore *);
void ObjUpdateMeta(struct worker *, struct objcore *);
......
......@@ -296,7 +296,7 @@ EXP_NukeOne(struct worker *wrk, struct lru *lru)
AZ(oc->lru_flags & OC_LRU_OFFLRU);
if (ObjKill(wrk, oc)) {
if (ObjSnipe(wrk, oc)) {
VSC_C_main->n_lru_nuked++; // XXX per lru ?
VTAILQ_REMOVE(&lru->lru_head, oc, lru_list);
oc->lru_flags |= OC_LRU_OFFLRU;
......
......@@ -370,13 +370,13 @@ ObjTouch(struct worker *wrk, struct objcore *oc, double now)
}
/*====================================================================
* ObjKill()
* ObjSnipe()
*
* If objcore is idle, gain a ref and mark it dead.
*/
int
ObjKill(const struct worker *wrk, struct objcore *oc)
ObjSnipe(const struct worker *wrk, struct objcore *oc)
{
int retval = 0;
......
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