]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: _do_write: only use append case for aligned eof
authorSage Weil <sage@redhat.com>
Mon, 28 Mar 2016 19:35:43 +0000 (15:35 -0400)
committerSage Weil <sage@redhat.com>
Wed, 30 Mar 2016 15:23:15 +0000 (11:23 -0400)
commit00a71a0740f16ee643fc7dbfd16428bae425518f
tree12ce985bded63e4ba16c9a3877aa2ede9b306cd5
parent9aaf1b195a4b2fc84db028a023241c59c767019b
os/bluestore: _do_write: only use append case for aligned eof

The append case here only works if the EOF was aligned
and there is thus no partial-block zeroing we need to
do.  If the condition fails, we fall through to the
generic WAL path below.

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