| 601 | } |
| 602 | |
| 603 | void |
| 604 | StripeSM::init_dir() |
| 605 | { |
| 606 | for (int s = 0; s < this->_segments; s++) { |
| 607 | this->freelist[s] = 0; |
| 608 | CacheDirEntry *seg = this->dir_segment(s); |
| 609 | int l, b; |
| 610 | for (l = 1; l < DIR_DEPTH; l++) { |
| 611 | for (b = 0; b < this->_buckets; b++) { |
| 612 | CacheDirEntry *bucket = dir_bucket(b, seg); |
| 613 | this->dir_free_entry(dir_bucket_row(bucket, l), s); |
| 614 | // std::cout<<"freelist"<<this->freelist[s]<<std::endl; |
| 615 | } |
| 616 | } |
| 617 | } |
| 618 | } |
| 619 | |
| 620 | Errata |
| 621 | StripeSM::loadDir() |
nothing calls this directly
no test coverage detected