talloc: Add a separate pool size
authorVolker Lendecke <vl@samba.org>
Fri, 6 Sep 2013 21:20:20 +0000 (14:20 -0700)
committerStefan Metzmacher <metze@samba.org>
Tue, 10 Mar 2015 09:55:38 +0000 (10:55 +0100)
commit35d9ff77439b28f9dd7b87941ab38380aff91c47
tree4de8e70d55b5e51e7b28961d06c17942e841ef7d
parente452a83b73056f64001d757f98ac1fc88627c5bc
talloc: Add a separate pool size

This is necessary to allow talloc pools to be objects on their own. It
is an incompatible change in the sense that talloc_get_size(pool) now
returns 0 instead of the pool size. When the talloc_pooled_object()
call is added, this will start to make sense again.

Maybe we should add a talloc_pool_size call? Or is that overkill?

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit a3d9099d9a96b36df21ee0733adc5210438fe9dc)
lib/talloc/talloc.c