]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: switch to intrusive_set for blobs
authorSage Weil <sage@redhat.com>
Tue, 7 Jun 2016 18:26:30 +0000 (14:26 -0400)
committerSage Weil <sage@redhat.com>
Wed, 15 Jun 2016 20:05:04 +0000 (16:05 -0400)
commitde6b2584b0478ec7b11f0e9bb31d29a0a6a71cad
tree364886b08624184689222be8af870e0c4ac58f24
parente65d2b8692868d6b875d486888c037def0b2273d
os/bluestore: switch to intrusive_set for blobs

Switch from a map of bare bluestore_blob_t's to an intrusive_set of
Blob structs that includes id, bluestore_blob_t, and BufferSpace.  The
buffer cache portion isn't used yet, but it is properly initialized with
the Cache parent.

There is no real functional change here except that during clone we move
the existing Blob from the Onode's BlobMap to the Bnode's without any
copying.

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