From 865b715029b7601e3e567816564bdebd26cb664b Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Mon, 14 Nov 2016 11:16:06 +0800 Subject: [PATCH] os/bluestore: static apply() method for bluestore internal-use only Signed-off-by: xie xingguo --- src/os/bluestore/BlueStore.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index e22dd0e720eb7..ba8ef9c51c81e 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -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 &)> f) { +static void apply(uint64_t off, + uint64_t len, + uint64_t granularity, + boost::dynamic_bitset<> &bitset, + const char *what, + std::function &)> f) { auto end = ROUND_UP_TO(off + len, granularity); while (off < end) { uint64_t pos = off / granularity; -- 2.39.5