]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
os/bluestore: Added asserts for allocator regions
authorAdam Kupczyk <akupczyk@redhat.com>
Mon, 7 Dec 2020 13:57:04 +0000 (14:57 +0100)
committerKefu Chai <kchai@redhat.com>
Thu, 11 Mar 2021 04:04:16 +0000 (12:04 +0800)
commit9bdb2e3c3105bec2041f282fb7d5104f7d69a8c4
treedb51dd85b344ca5ab9e9dcc45a33e1ff41d25c06
parent1eb51c33fef5876c296f5d7829ea2cdb6e0096a8
os/bluestore: Added asserts for allocator regions

Functions release/init_add_free/init_rm_free did not check its input against device size.
It is incorrect and had been a problem when you shrink device.

Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
src/os/bluestore/Allocator.cc
src/os/bluestore/Allocator.h
src/os/bluestore/AvlAllocator.cc
src/os/bluestore/BitmapAllocator.cc
src/os/bluestore/BitmapAllocator.h
src/os/bluestore/StupidAllocator.cc
src/os/bluestore/StupidAllocator.h