]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: fix smr allocator init
authorSage Weil <sage@newdream.net>
Mon, 6 Sep 2021 21:45:23 +0000 (16:45 -0500)
committerSage Weil <sage@newdream.net>
Fri, 29 Oct 2021 13:55:57 +0000 (09:55 -0400)
commit9c5d4349aae8bef3c87955dfb6af03ea923655c0
treece754e8768aa42ca0a472b0038f62c7a3c83421e
parent54470fe14b216f182aa3270e5dfd9528af42a04f
os/bluestore: fix smr allocator init

- initialize from device's pointers
- cross check against freelist manager's pointers (warn!)
- fix init_{add,rm}_free methods to do little/nothing (the other init
  method does most of what we need)

Signed-off-by: Sage Weil <sage@newdream.net>
src/os/bluestore/BlueStore.cc
src/os/bluestore/ZonedAllocator.cc
src/os/bluestore/ZonedAllocator.h