diff options
| author | Ilias Apalodimas <[email protected]> | 2024-12-18 09:02:33 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-12-30 13:21:55 -0600 |
| commit | 400c34db8957bbe49b15dcc0310697f829c63e01 (patch) | |
| tree | 6719b204d1bf23460d93f1d9ace69165f5089211 /test/lib | |
| parent | 900a8951c3b6035c25632438ebc7240cbc77883c (diff) | |
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 <[email protected]>
Tested-by: Sam Protsenko <[email protected]>
Signed-off-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'test/lib')
| -rw-r--r-- | test/lib/lmb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/lmb.c b/test/lib/lmb.c index 3c3e862ffa0..6e870274fed 100644 --- a/test/lib/lmb.c +++ b/test/lib/lmb.c @@ -65,7 +65,7 @@ static int setup_lmb_test(struct unit_test_state *uts, struct lmb *store, ut_assertok(lmb_push(store)); lmb = lmb_get(); - *mem_lstp = &lmb->free_mem; + *mem_lstp = &lmb->available_mem; *used_lstp = &lmb->used_mem; return 0; |
