]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: Add Writer::_crop_allocs_to_io
authorAdam Kupczyk <akupczyk@ibm.com>
Sat, 13 Jul 2024 18:08:16 +0000 (18:08 +0000)
committerAdam Kupczyk <akupczyk@ibm.com>
Wed, 7 Aug 2024 10:55:46 +0000 (10:55 +0000)
commitc989d743a645c58d8afde1565ce8e3b3706e91ed
tree3159a5c0d1f284012169bbd4b503397087db21e0
parent1c5fd0fc47a0fb65eeddd29f3fc21530e855a379
os/bluestore: Add Writer::_crop_allocs_to_io

Usually the data we put to disk is AU aligned.
In weird cases like AU=16K we put less data than we allocated.
_crop_allocs_to_io trims allocated extents into disk block extents
to reflect real IO.

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