From: Kefu Chai Date: Wed, 14 Apr 2021 03:25:17 +0000 (+0800) Subject: os/bluestore: do not cast min_alloc_size to int64_t X-Git-Tag: v17.1.0~2237^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=98f0617bd6262e5f6750b88b8f964415e54e56b4;p=ceph-ci.git os/bluestore: do not cast min_alloc_size to int64_t as the left-hand operator will be an unsigned integer after the yaml-to-cxx migration. Signed-off-by: Kefu Chai --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 5081da22d30..34270974fb5 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -5292,7 +5292,7 @@ int BlueStore::_open_fm(KeyValueDB::Transaction t, bool read_only) } // being able to allocate in units less than bdev block size // seems to be a bad idea. - ceph_assert( cct->_conf->bdev_block_size <= (int64_t)min_alloc_size); + ceph_assert(cct->_conf->bdev_block_size <= min_alloc_size); uint64_t alloc_size = min_alloc_size; if (bdev->is_smr()) {