linux/drivers/block/zram
Christoph Hellwig 74fa8f9c55 block: pass a queue_limits argument to blk_alloc_disk
Pass a queue_limits to blk_alloc_disk and apply it if non-NULL.  This
will allow allocating queues with valid queue limits instead of setting
the values one at a time later.

Also change blk_alloc_disk to return an ERR_PTR instead of just NULL
which can't distinguish errors.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Link: https://lore.kernel.org/r/20240215071055.2201424-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2024-02-19 16:58:23 -07:00
..
Kconfig zram: tweak writeback config help 2023-12-10 16:51:41 -08:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
zcomp.c zram: preparation for multi-zcomp support 2022-11-30 15:58:51 -08:00
zcomp.h zram: preparation for multi-zcomp support 2022-11-30 15:58:51 -08:00
zram_drv.c block: pass a queue_limits argument to blk_alloc_disk 2024-02-19 16:58:23 -07:00
zram_drv.h zram: split memory-tracking and ac-time tracking 2023-12-10 16:51:40 -08:00