talloc: Add a separate pool size
commit040a3e1e04cd36ac9f061096f3906cd1cd997c60
authorVolker Lendecke <vl@samba.org>
Fri, 6 Sep 2013 21:20:20 +0000 (6 14:20 -0700)
committerKarolin Seeger <kseeger@samba.org>
Sun, 15 Mar 2015 21:14:08 +0000 (15 22:14 +0100)
tree4de8e70d55b5e51e7b28961d06c17942e841ef7d
parente5ff3e1b10eb5833f23f852454073625a1bd847a
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