]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: Make write_v2 not need to use compress_extents
authorAdam Kupczyk <akupczyk@ibm.com>
Thu, 6 Mar 2025 19:40:29 +0000 (19:40 +0000)
committerAdam Kupczyk <akupczyk@ibm.com>
Thu, 13 Mar 2025 06:49:03 +0000 (06:49 +0000)
commitbda481b7b8647a4c5ed7c81f15feb6f510ac321b
tree3202a4b5984ad79d2b48d30557daa50947889226
parentb7fdda71c7ca122cfe094528737e0d3dc1b0e39a
os/bluestore: Make write_v2 not need to use compress_extents

Remove need to call compress_extents.
The only place that could produce compressable extents are
_try_reuse_allocated_[l/r] functions.

Create _place_extent_in_blob() function that adds mapping to blob.
If possible, it expands the extent; if not, creates the new one.
The function is used whenever we need new mapping to an existing Blob.

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
src/os/bluestore/Writer.cc
src/os/bluestore/Writer.h