summaryrefslogtreecommitdiffstats
path: root/src/os/bluestore/BlueStore.cc
diff options
context:
space:
mode:
authorHaomai Wang <haomaiwang@gmail.com>2017-04-24 06:11:21 +0200
committerGitHub <noreply@github.com>2017-04-24 06:11:21 +0200
commit4bc7acdd06a59fc5ea4397a3c633ce5715960650 (patch)
treec619639812e5bc8109b338219316eb72f88ef2fe /src/os/bluestore/BlueStore.cc
parentMerge pull request #14740 from petermaloney/master (diff)
downloadceph-4bc7acdd06a59fc5ea4397a3c633ce5715960650.tar.xz
ceph-4bc7acdd06a59fc5ea4397a3c633ce5715960650.zip
os/bluestore: align reclaim size to bluefs_alloc_size
otherwise it will crash because of unaligned alloc size Signed-off-by: Haomai Wang <haomai@xsky.com>
Diffstat (limited to '')
-rw-r--r--src/os/bluestore/BlueStore.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc
index 6f35698d98a..62c306ddeda 100644
--- a/src/os/bluestore/BlueStore.cc
+++ b/src/os/bluestore/BlueStore.cc
@@ -4437,7 +4437,7 @@ int BlueStore::_balance_bluefs_freespace(PExtentVector *extents)
// reclaim from bluefs?
if (reclaim) {
// round up to alloc size
- reclaim = P2ROUNDUP(reclaim, min_alloc_size);
+ reclaim = P2ROUNDUP(reclaim, cct->_conf->bluefs_alloc_size);
// hard cap to fit into 32 bits
reclaim = MIN(reclaim, 1ull<<31);