inline bool BitMapZone::is_exhausted()
{
/* BitMapZone::get_used_blocks operates atomically. No need for lock. */
- return get_used_blocks() == size();
+ return BitMapZone::get_used_blocks() == BitMapZone::size();
}
bool BitMapZone::is_allocated(int64_t start_block, int64_t num_blocks)
/* The exhausted check can be performed without acquiring the lock. This
* is because 1) BitMapZone::is_exhausted() actually operates atomically
* and 2) it's followed by the exclusive, required-aware re-verification. */
- if (child->is_exhausted()) {
+ if (child->BitMapZone::is_exhausted()) {
return false;
}
static void incr_count() { count++;}
static int64_t get_total_blocks() {return total_blocks;}
bool is_allocated(int64_t start_block, int64_t num_blocks) override;
- bool is_exhausted() override;
+ bool is_exhausted() override final;
void reset_marker();
int64_t sub_used_blocks(int64_t num_blocks) override;
bool reserve_blocks(int64_t num_blocks) override;
void unreserve(int64_t num_blocks, int64_t allocated) override;
int64_t get_reserved_blocks() override;
- int64_t get_used_blocks() override;
- int64_t size() override {
+ int64_t get_used_blocks() override final;
+ int64_t size() override final {
return get_total_blocks();
}