]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: only direct write into unused blob space
authorSage Weil <sage@redhat.com>
Thu, 19 May 2016 12:47:44 +0000 (08:47 -0400)
committerSage Weil <sage@redhat.com>
Wed, 1 Jun 2016 15:38:52 +0000 (11:38 -0400)
commit499d7f6da0374c6f90c1174569ca55d6de2b9085
treeea03249330c05b2f7fb6837448ce61c386221280
parent82ed3ecf9ce069c82bde39104b615fb588c1bd18
os/bluestore: only direct write into unused blob space

We can only do a direct write into an already-allocated blob once, if that
range hasn't yet been used.  Once it has been used, it is much to complex
to keep track of when all references to it have committed to disk before
reusing it, so we don't try to handle that case at all.

Since the range has never been used, we can assert that there are no
references to it.

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