summaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-12-03 12:39:06 +0300
committerJens Axboe <axboe@kernel.dk>2019-12-03 18:51:25 +0300
commite94f5819448c5b75829662eaa9c25c17868846cf (patch)
treef09a91b456a3176daea18dcd2e598a4585f38eae /drivers/md
parentf216fdd77b5654f8c4f6fac6020d6aabc58878ef (diff)
downloadlinux-e94f5819448c5b75829662eaa9c25c17868846cf.tar.xz
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>
Diffstat (limited to 'drivers/md')
0 files changed, 0 insertions, 0 deletions