| 571 | } |
| 572 | |
| 573 | void |
| 574 | StripeSM::dir_free_entry(CacheDirEntry *e, int s) |
| 575 | { |
| 576 | CacheDirEntry *seg = this->dir_segment(s); |
| 577 | unsigned int fo = this->freelist[s]; |
| 578 | unsigned int eo = dir_to_offset(e, seg); |
| 579 | dir_set_next(e, fo); |
| 580 | if (fo) { |
| 581 | dir_set_prev(dir_from_offset(fo, seg), eo); |
| 582 | } |
| 583 | this->freelist[s] = eo; |
| 584 | } |
| 585 | |
| 586 | // adds all the directory entries |
| 587 | // in a segment to the segment freelist |
no test coverage detected