]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: simplify BufferSpace writing_map / list 11328/head
authorSage Weil <sage@redhat.com>
Wed, 5 Oct 2016 13:56:09 +0000 (09:56 -0400)
committerSage Weil <sage@redhat.com>
Wed, 5 Oct 2016 13:56:09 +0000 (09:56 -0400)
commit0932d39e28cd1e106efb697612bb405584e90154
tree9bd4130021215f44760868fad32731783dd6e06f
parent6bbac0e02fc27432847ee827ac0ce35315d8d766
os/bluestore: simplify BufferSpace writing_map / list

We were tracking buffers by seq.  In reality, though, we
won't have very many buffers that have in flight IO to
the same blob at the same time, so we can get by with
just a list here.  We can rely on the fact that the
list will be sorted (seq's increase, and we put new
buffers at the end).

This saves us a memory allocation.  No change in size of
BufferSpace and Blob (std::list -> intrusive::list).

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