[master] 22881138e Blindly attempt to fix space accounting in storage_umem.c (analog of storage_malloc.c)
Dridi Boukelmoune
dridi at varni.sh
Mon May 31 19:50:08 UTC 2021
On Mon, May 31, 2021 at 7:16 PM Poul-Henning Kamp <phk at freebsd.org> wrote:
>
>
> commit 22881138edf748f82a44cf14f5dac2648b476709
> Author: Poul-Henning Kamp <phk at FreeBSD.org>
> Date: Mon May 31 19:15:17 2021 +0000
>
> Blindly attempt to fix space accounting in storage_umem.c
> (analog of storage_malloc.c)
>
> diff --git a/bin/varnishd/storage/storage_umem.c b/bin/varnishd/storage/storage_umem.c
> index bc3458e9c..3da22a35e 100644
> --- a/bin/varnishd/storage/storage_umem.c
> +++ b/bin/varnishd/storage/storage_umem.c
> @@ -58,8 +58,8 @@ struct smu_sc {
> unsigned magic;
> #define SMU_SC_MAGIC 0x7695f68e
> struct lock smu_mtx;
> - size_t smu_max;
> - size_t smu_alloc;
> + VCL_INT smu_max;
> + VCL_INT smu_alloc;
Did you mean to use VCL_BYTES like in struct sma_sc?
More information about the varnish-commit
mailing list