From: xie xingguo Date: Sat, 4 Jun 2016 03:05:14 +0000 (+0800) Subject: bluestore/BitAllocator: remove redundant assert X-Git-Tag: v11.0.0~285^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b473574bb9e52e7f30fabadc901bdd32a0e28dd8;p=ceph.git bluestore/BitAllocator: remove redundant assert We have assert this ahead. Signed-off-by: xie xingguo --- diff --git a/src/os/bluestore/BitAllocator.cc b/src/os/bluestore/BitAllocator.cc index 63c3de86c59a..d87cf9c5b9f9 100644 --- a/src/os/bluestore/BitAllocator.cc +++ b/src/os/bluestore/BitAllocator.cc @@ -843,8 +843,6 @@ bool BitMapAreaIN::is_allocated(int64_t start_block, int64_t num_blocks) return true; } - assert(start_block >= 0); - while (num_blocks) { area = (BitMapArea *) m_child_list->get_nth_item( start_block / m_child_size_blocks); @@ -1015,8 +1013,6 @@ void BitMapAreaIN::free_blocks_int(int64_t start_block, int64_t num_blocks) return; } - assert(start_block >= 0); - while (num_blocks) { child = (BitMapArea *) m_child_list->get_nth_item( start_block / m_child_size_blocks); @@ -1187,8 +1183,6 @@ void BitMapAreaLeaf::free_blocks_int(int64_t start_block, int64_t num_blocks) return; } - assert(start_block >= 0); - while (num_blocks) { child = (BitMapArea *) m_child_list->get_nth_item( start_block / m_child_size_blocks);