]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
buffer: rework list::append_zero
authorPiotr Dałek <piotr.dalek@corp.ovh.com>
Mon, 23 Apr 2018 14:34:30 +0000 (16:34 +0200)
committerPiotr Dałek <piotr.dalek@corp.ovh.com>
Wed, 25 Apr 2018 08:20:17 +0000 (10:20 +0200)
commit01134da2f18d8b5819c4c80b10255ca08708b6c1
treee0be3fc4a13e52a369dea37d10473e23bdbaff50
parent98ad3080df073b007bf2fceee85186726b3fa016
buffer: rework list::append_zero

Instead of blindly adding new bufferptrs, try to memset the remaining
space in append_buffer and try appending that part to the list,
possibly reducing number of needed bufferptrs in blocksize aligned
bufferlists. If that won't be enough, have the additional bufferptrs
page aligned.
Additionally, don't create extra bufferptrs if there's no remaining
zeros to append.

Signed-off-by: Piotr Dałek <piotr.dalek@corp.ovh.com>
src/common/buffer.cc
src/include/buffer.h