CLEANUP: pools: re-merge pool_refill_alloc() and __pool_refill_alloc()
authorWilly Tarreau <w@1wt.eu>
Thu, 15 Apr 2021 16:20:12 +0000 (18:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 19 Apr 2021 13:24:33 +0000 (15:24 +0200)
commit8fe726f1183c1c0cb16e4724ced89482712260ef
treec6af3b551971ed955ec00a83e7d3fe4b6148eaa5
parenteb3cc2962239cd86f1ac3344e897d617ef837caf
CLEANUP: pools: re-merge pool_refill_alloc() and __pool_refill_alloc()

They were strictly equivalent, let's remerge them and rename them to
pool_alloc_nocache() as it's the call which performs a real allocation
which does not check nor update the cache. The only difference in the
past was the former taking the lock and not the second but now the lock
is not needed anymore at this stage since the pool's list is not touched.

In addition, given that the "avail" argument is no longer used by the
function nor by its callers, let's drop it.
include/haproxy/pool.h
src/dynbuf.c
src/pool.c