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

Function dir_from_offset

src/iocore/cache/P_CacheDir.h:339–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339inline Dir *
340dir_from_offset(int64_t i, Dir *seg)
341{
342#if DIR_DEPTH < 5
343 if (!i) {
344 return nullptr;
345 }
346 return dir_in_seg(seg, i);
347#else
348 i = i + ((i - 1) / (DIR_DEPTH - 1));
349 return dir_in_seg(seg, i);
350#endif
351}
352
353inline Dir *
354next_dir(Dir *d, Dir *seg)

Callers 7

next_dirFunction · 0.70
dir_freelist_lengthFunction · 0.70
unlink_from_freelistFunction · 0.70
dir_delete_entryFunction · 0.70
freelist_popFunction · 0.70
dir_free_entryFunction · 0.70

Calls

no outgoing calls

Tested by 1