[LTP] [PATCH v2 1/1] cachestat01: Reduce required space on 64kb page size
Cyril Hrubis
chrubis@suse.cz
Wed Jul 31 12:39:36 CEST 2024
Hi!
> > + num_shift = MIN(tst_device->size*1024*2.6/page_size, 15);
>
> I guess that we can make it future proof by rounding the 2.6 to 3 just
And that is on the wrong side obviously, so we should do rounding down
to 2 or 2.2 or something along the lines.
> to avoid failures in the future when filesystems consume just a bit more
> space for a metadata...
>
> Other than that:
>
> Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
>
> > page_data = SAFE_MALLOC(page_size);
> > memset(page_data, 'a', page_size);
> > }
> > --
> > 2.45.2
> >
>
> --
> Cyril Hrubis
> chrubis@suse.cz
>
> --
> Mailing list info: https://lists.linux.it/listinfo/ltp
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list