| 430 | } |
| 431 | |
| 432 | inline int64_t |
| 433 | dir_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 | |
| 444 | struct StripeSM; |
| 445 | struct Span { |
no outgoing calls
no test coverage detected