| 44 | } |
| 45 | |
| 46 | inodeno_t InoTable::project_alloc_id(inodeno_t id) |
| 47 | { |
| 48 | dout(10) << "project_alloc_id " << id << " to " << projected_free << "/" << free << dendl; |
| 49 | ceph_assert(is_active()); |
| 50 | if (!id) |
| 51 | id = projected_free.range_start(); |
| 52 | projected_free.erase(id); |
| 53 | ++projected_version; |
| 54 | return id; |
| 55 | } |
| 56 | void InoTable::apply_alloc_id(inodeno_t id) |
| 57 | { |
| 58 | dout(10) << "apply_alloc_id " << id << " to " << projected_free << "/" << free << dendl; |
no test coverage detected