]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
bluestore/BitAllocator: remove redundant assert
authorxie xingguo <xie.xingguo@zte.com.cn>
Sat, 4 Jun 2016 03:05:14 +0000 (11:05 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Sat, 4 Jun 2016 03:49:39 +0000 (11:49 +0800)
We have assert this ahead.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BitAllocator.cc

index 63c3de86c59aa09f458b515ee2376e026262daef..d87cf9c5b9f9c49f6577ca28b6475ecead9659e2 100644 (file)
@@ -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);