]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/BitAllocator: use std namespace for atomic_*
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 18 May 2016 01:24:18 +0000 (09:24 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 1 Jun 2016 05:25:50 +0000 (13:25 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BitAllocator.cc

index bc19fd43dadd2facccb36f69445e5135a8d6b221..f72131d83e473a6a47e70ac596d800c29e45ffc1 100644 (file)
@@ -176,7 +176,7 @@ void BmapEntry::set_bits(int offset, int num_bits)
 bool BmapEntry::check_n_set_bit(int bit)
 {
   bmap_t bmask = bit_mask(bit);
-  return !(atomic_fetch_or(&m_bits, bmask) & bmask);
+  return !(std::atomic_fetch_or(&m_bits, bmask) & bmask);
 }
 
 /*
@@ -339,7 +339,7 @@ int64_t BmapList::incr_marker(int64_t add)
 
 void BmapList::set_marker(int64_t val)
 {
- atomic_store(&m_marker, val);
 std::atomic_store(&m_marker, val);
 }
 
 int64_t BmapList::get_marker()