]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: static apply() method for bluestore internal-use only
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 14 Nov 2016 03:16:06 +0000 (11:16 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 14 Nov 2016 03:16:06 +0000 (11:16 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueStore.cc

index e22dd0e720eb7960735daee1befa951c6b21b512..ba8ef9c51c81e58a684b58e40d56d88bb40d9a29 100644 (file)
@@ -4215,12 +4215,12 @@ int BlueStore::umount()
   return 0;
 }
 
-void apply(uint64_t off,
-           uint64_t len,
-           uint64_t granularity,
-           boost::dynamic_bitset<> &bitset,
-          const char *what,
-          std::function<void(uint64_t, boost::dynamic_bitset<> &)> f) {
+static void apply(uint64_t off,
+                  uint64_t len,
+                  uint64_t granularity,
+                  boost::dynamic_bitset<> &bitset,
+                 const char *what,
+                  std::function<void(uint64_t, boost::dynamic_bitset<> &)> f) {
   auto end = ROUND_UP_TO(off + len, granularity);
   while (off < end) {
     uint64_t pos = off / granularity;