Commit d3f35715 authored by Pankaj Raghav's avatar Pankaj Raghav Committed by Treehugger Robot
Browse files

FROMLIST: dm-zone: use generic helpers to calculate offset from zone start



Use the bdev_offset_from_zone_start() helper function to calculate
the offset from zone start instead of using power of 2 based
calculation.

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


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