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

Function dir_to_offset

src/traffic_cache_tool/CacheDefs.h:432–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430}
431
432inline int64_t
433dir_to_offset(const CacheDirEntry *d, const CacheDirEntry *seg)
434{
435#if DIR_DEPTH < 5
436 return (((char *)d) - ((char *)seg)) / SIZEOF_DIR;
437#else
438 int64_t i = (int64_t)((((char *)d) - ((char *)seg)) / SIZEOF_DIR);
439 i = i - (i / DIR_DEPTH);
440 return i;
441#endif
442}
443
444struct StripeSM;
445struct Span {

Callers 4

dir_delete_entryMethod · 0.70
walk_bucket_chainMethod · 0.70
dir_free_entryMethod · 0.70
ScanMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected