Re: [PATCH] s390/pci: Use the bitmap API to allocate bitmaps

From: Christophe JAILLET
Date: Tue Jul 19 2022 - 01:53:01 EST


Le 14/07/2022 à 07:22, Alexander Gordeev a écrit :
On Sat, Jul 09, 2022 at 06:11:28PM +0200, Christophe JAILLET wrote:
I don't know why commit c506fff3d3a8 ("s390/pci: resize iomap") has turned
this bitmap from a statically defined bitmap to a runtime-allocated one.

c506fff3d3a8 commit message:

This reduces the size of the iomap from 256K to less than 4K
(using the defconfig).


Hi,

IIUC, going from ZPCI_IOMAP_MAX_ENTRIES to ZPCI_IOMAP_ENTRIES reduced the size, not going from DECLARE_BITMAP() to kcalloc().

CJ