]> git.baikalelectronics.ru Git - kernel.git/commit
block: allocate the zone bitmaps lazily
authorChristoph Hellwig <hch@lst.de>
Tue, 3 Dec 2019 09:39:06 +0000 (10:39 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 3 Dec 2019 15:51:25 +0000 (08:51 -0700)
commit20d051a0a6718d34973b053ad1593e1b64f7fdab
treef09a91b456a3176daea18dcd2e598a4585f38eae
parent71bf03cfb564a00662363c5968d98bcdefe4ca27
block: allocate the zone bitmaps lazily

Allocate the conventional zone bitmap and the sequential zone locking
bitmap only when we find a zone of the respective type.  This avoids
wasting memory on the conventional zone bitmap for devices that only
have sequential zones, and will also prepare for other future changes.

Reviewed-by: Javier González <javier@javigon.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-zoned.c