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

2022-09-04 Thread kernel test robot
' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Christophe-JAILLET/nvdimm-Avoid-wasting-some-memory/20220904-215140 base:b90cb1053190353cc30f0fef0ef1f378ccc063c5 config: x86_64-randconfig-a014 (https

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