]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
buffer: put data and metadata in a mempool 11839/head
authorSage Weil <sage@redhat.com>
Wed, 9 Nov 2016 17:07:24 +0000 (12:07 -0500)
committerSage Weil <sage@redhat.com>
Fri, 11 Nov 2016 19:59:54 +0000 (14:59 -0500)
commitfc15c1285088a5f35c7ed79d862c1f8dbc6f2ce0
tree1e6c2b8dac6f1024ca35562aaa33cff0f07220ff
parentdcc23765b49489bb7ab5242f36db15eaff309e72
buffer: put data and metadata in a mempool

Note that for raw_combined we leak some metadata into the data pool.

Also, we do not account for non-raw metadata or anything else in buffer.h,
as that would pollute the ABI and public interface.

Drop the namespace ceph in buffer.cc (which serves no real purpose) as it
confuses the MEMPOOL_DEFINE_* macros (they cannot be used inside a
namespace).

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/buffer.cc
src/include/mempool.h