MCPcopy Create free account
hub / github.com/apache/trafficserver / dir_free_entry

Function dir_free_entry

src/iocore/cache/CacheDir.cc:477–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475}
476
477void
478dir_free_entry(Dir *e, int s, Stripe *stripe)
479{
480 Dir *seg = stripe->directory.get_segment(s);
481 unsigned int fo = stripe->directory.header->freelist[s];
482 unsigned int eo = dir_to_offset(e, seg);
483 dir_set_next(e, fo);
484 if (fo) {
485 dir_set_prev(dir_from_offset(fo, seg), eo);
486 }
487 stripe->directory.header->freelist[s] = eo;
488}
489
490int
491dir_probe(const CacheKey *key, StripeSM *stripe, Dir *result, Dir **last_collision)

Callers 2

dir_init_segmentFunction · 0.85
_init_dirMethod · 0.85

Calls 3

get_segmentMethod · 0.80
dir_to_offsetFunction · 0.70
dir_from_offsetFunction · 0.70

Tested by

no test coverage detected