lmb: Rename free_mem to available_mem
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Wed, 18 Dec 2024 07:02:33 +0000 (09:02 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 30 Dec 2024 19:21:55 +0000 (13:21 -0600)
commit400c34db8957bbe49b15dcc0310697f829c63e01
tree6719b204d1bf23460d93f1d9ace69165f5089211
parent900a8951c3b6035c25632438ebc7240cbc77883c
lmb: Rename free_mem to available_mem

free_mem is a misnomer. We never update it with the free memory for
LMB. Instead, it describes all available memory and is checked against
used_mem to decide whether an area is free or not.

So let's rename this field to better match its usage.

Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Tested-by: Sam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
include/lmb.h
lib/lmb.c
test/cmd/bdinfo.c
test/lib/lmb.c