From: xie xingguo Date: Mon, 14 Nov 2016 03:16:06 +0000 (+0800) Subject: os/bluestore: static apply() method for bluestore internal-use only X-Git-Tag: v11.1.0~288^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=865b715029b7601e3e567816564bdebd26cb664b;p=ceph.git os/bluestore: static apply() method for bluestore internal-use only Signed-off-by: xie xingguo --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index e22dd0e720eb..ba8ef9c51c81 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;