unlock();
}
-bool BitMapAreaIN::child_check_n_lock(BitMapArea *child, int64_t required)
+bool BitMapAreaIN::child_check_n_lock(BitMapArea *child)
{
child->lock_shared();
m_child_list, hint / m_child_size_blocks, wrap);
while ((child = (BitMapArea *) iter.next())) {
- if (!child_check_n_lock(child, 1)) {
+ if (!child_check_n_lock(child)) {
hint = 0;
continue;
}
unlock();
}
-bool BitMapAreaLeaf::child_check_n_lock(BitMapArea *child, int64_t required, bool lock)
+bool BitMapAreaLeaf::child_check_n_lock(BitMapArea *child, bool lock)
{
if (lock) {
child->lock_excl();
m_child_list, hint / m_child_size_blocks, false);
while ((child = (BitMapArea *) iter.next())) {
- if (!child_check_n_lock(child, 1, false)) {
+ if (!child_check_n_lock(child, false)) {
hint = 0;
continue;
}
}
}
-bool BitAllocator::child_check_n_lock(BitMapArea *child, int64_t required)
+bool BitAllocator::child_check_n_lock(BitMapArea *child)
{
child->lock_shared();
static int64_t get_level_factor(CephContext* cct, int level);
virtual bool is_allocated(int64_t start_block, int64_t num_blocks) = 0;
virtual bool is_exhausted() = 0;
- virtual bool child_check_n_lock(BitMapArea *child, int64_t required) {
+ virtual bool child_check_n_lock(BitMapArea *child) {
ceph_abort();
return true;
}
- virtual bool child_check_n_lock(BitMapArea *child, int64_t required, bool lock) {
+ virtual bool child_check_n_lock(BitMapArea *child, bool lock) {
ceph_abort();
return true;
}
virtual bool is_allocated(int64_t start_block, int64_t num_blocks);
virtual bool is_exhausted();
- bool child_check_n_lock(BitMapArea *child, int64_t required, bool lock) {
+ bool child_check_n_lock(BitMapArea *child, bool lock) {
ceph_abort();
return false;
}
- virtual bool child_check_n_lock(BitMapArea *child, int64_t required);
+ virtual bool child_check_n_lock(BitMapArea *child);
virtual void child_unlock(BitMapArea *child);
virtual void lock_excl() {
BitMapAreaLeaf(CephContext* cct, int64_t zone_num, int64_t total_blocks,
bool def);
- bool child_check_n_lock(BitMapArea *child, int64_t required) {
+ bool child_check_n_lock(BitMapArea *child) {
ceph_abort();
return false;
}
- bool child_check_n_lock(BitMapArea *child, int64_t required, bool lock);
+ bool child_check_n_lock(BitMapArea *child, bool lock);
void child_unlock(BitMapArea *child);
int64_t alloc_blocks_int(int64_t num_blocks, int64_t hint, int64_t *start_block);
}
using BitMapArea::child_check_n_lock;
- bool child_check_n_lock(BitMapArea *child, int64_t required);
+ bool child_check_n_lock(BitMapArea *child);
virtual void child_unlock(BitMapArea *child);
void serial_lock();