[master] 22881138e Blindly attempt to fix space accounting in storage_umem.c (analog of storage_malloc.c)

Poul-Henning Kamp phk at phk.freebsd.dk
Mon May 31 22:11:38 UTC 2021


--------
Dridi Boukelmoune writes:
> 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/sto
> rage_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?

Indeed I did, thanks :-)

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the varnish-commit mailing list