]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: simplify spare read path, remove pextent constraint
authorSage Weil <sage@redhat.com>
Mon, 6 Jun 2016 20:00:26 +0000 (16:00 -0400)
committerSage Weil <sage@redhat.com>
Wed, 15 Jun 2016 19:25:30 +0000 (15:25 -0400)
commit9d643af75357634b7de7e3c269d73c85b5bb4e13
tree988bc0fda571e38b2609affaca2d329ee28c1a0d
parent819dd4e57cf7cf7eac2fed19825fec8635e04a4a
os/bluestore: simplify spare read path, remove pextent constraint

The previous read code had the constraint that a physical extent had to
be a multiple of the csum chunk size.  This isn't needed: we might have
a csum_block of 1MB and min_alloc_size of 4KB and that's okay.

Collapse the two helpers into a single loop that uses the blob_t::map()
method to do the pextent part of the read.  This is simpler and avoids
the temporary extents2read structure.

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h
src/os/bluestore/bluestore_types.h