]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: Add make_range_shared_maybe_merge
authorAdam Kupczyk <akupczyk@ibm.com>
Wed, 10 May 2023 12:40:38 +0000 (12:40 +0000)
committerAdam Kupczyk <akupczyk@ibm.com>
Thu, 6 Jul 2023 15:28:50 +0000 (15:28 +0000)
commite387f6993a6a2b8879114bb97556c6aff91ac500
treec0a1c0baf5689358de92b96275c17b4d98d34299
parent11d83949106bbd5d3f91dd8d2217152c5c9cad52
os/bluestore: Add make_range_shared_maybe_merge

Adds function that converts a specified range in object to shared blobs,
possibly merging them with other shared blobs.

Modify make_range_shared_maybe_merge to allow for merging blobs.
It now uses can_merge_blobs and merge_blobs.

Add discard_unused_buffers() to make_range_shared.

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