Re: [PATCH] nvdimm: Avoid wasting some memory.

2022-09-04 Thread kernel test robot
Hi Christophe, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on v6.0-rc3] [also build test WARNING on linus/master next-20220901] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as

Re: [PATCH] nvdimm: Avoid wasting some memory.

2022-09-04 Thread Christophe JAILLET
Le 04/09/2022 à 16:38, Dan Williams a écrit : Christophe JAILLET wrote: sizeof(struct btt_sb) is 4096. When using devm_kzalloc(), there is a small memory overhead and, on most systems, this leads to 40 bytes of extra memory allocation. So 5036 bytes are expected to be allocated. The memory

RE: [PATCH] nvdimm: Avoid wasting some memory.

2022-09-04 Thread Dan Williams
Christophe JAILLET wrote: > sizeof(struct btt_sb) is 4096. > > When using devm_kzalloc(), there is a small memory overhead and, on most > systems, this leads to 40 bytes of extra memory allocation. > So 5036 bytes are expected to be allocated. > > The memory allocator works with fixed size hunks

[PATCH] nvdimm: Avoid wasting some memory.

2022-09-04 Thread Christophe JAILLET
sizeof(struct btt_sb) is 4096. When using devm_kzalloc(), there is a small memory overhead and, on most systems, this leads to 40 bytes of extra memory allocation. So 5036 bytes are expected to be allocated. The memory allocator works with fixed size hunks of memory. In this case, it will