Shin'ichiro Kawasaki 927b6b2d69 block: Fix null_blk_zoned creation failure with small number of zones
null_blk_zoned creation fails if the number of zones specified is equal to or is
smaller than 64 due to a memory allocation failure in blk_alloc_zones(). With
such a small number of zones, the required memory size for all zones descriptors
fits in a single page, and the page order for alloc_pages_node() is zero. Allow
this value in blk_alloc_zones() for the allocation to succeed.

Fixes: bf5054569653 "block: Introduce blk_revalidate_disk_zones()"
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2018-12-11 16:19:38 -07:00
..
2018-12-10 13:37:20 -07:00
2018-11-02 11:25:48 -07:00
2018-10-01 08:58:57 -06:00
2018-06-17 05:37:55 +09:00
2018-10-01 08:58:57 -06:00
2018-10-01 08:58:57 -06:00
2018-10-25 11:17:40 -06:00
2018-05-31 10:50:54 -04:00