Commit 3ce9fbc5 authored by Luis Chamberlain's avatar Luis Chamberlain Committed by Treehugger Robot
Browse files

FROMLIST: dm-zoned: ensure only power of 2 zone sizes are allowed



dm-zoned relies on the assumption that the zone size is a
power-of-2(po2) and the zone capacity is same as the zone size.

Ensure only po2 devices can be used as dm-zoned target until a native
support for zoned devices with non-po2 zone size is added.

Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
Reviewed-by: default avatarDamien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: default avatarBart Van Assche <bvanassche@acm.org>
Reviewed-by: default avatarMike Snitzer <snitzer@kernel.org>
Reviewed-by: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
Signed-off-by: default avatarPankaj Raghav <p.raghav@samsung.com>
Link: https://lore.kernel.org/linux-block/20220923173618.6899-9-p.raghav@samsung.com/


Bug: 197782466
Bug: 269471019
Change-Id: I7b043036a9b95de779bc296465ccf4d9a0f222a2
Signed-off-by: default avatarBart Van Assche <bvanassche@google.com>
parent 5498feea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment