talloc: Decouple the dual use of chunk->pool
authorVolker Lendecke <vl@samba.org>
Fri, 6 Sep 2013 17:54:43 +0000 (10:54 -0700)
committerKarolin Seeger <kseeger@samba.org>
Sun, 15 Mar 2015 21:14:07 +0000 (22:14 +0100)
commit164fb45d5a1fb5d135061d6264ca1d468802ee71
tree568abe183acba6a8ac81505c15b0c5c103623d8f
parent61c0ed72181abcf4db6f716e41535b98ef1da07c
talloc: Decouple the dual use of chunk->pool

If we want nested pools, we will have pools that are pool members. So
we will have to have a separate "next object" pointer  for pools. As
we have struct talloc_pool_chunk now, this additional pointer does not
affect normal talloc objects.

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 1334c745e1f2157b66e14f9d8b4f6f7750238717)
lib/talloc/talloc.c