Skip to content
Commit 790eb09e authored by LongPing Wei's avatar LongPing Wei Committed by Jens Axboe
Browse files

block: get wp_offset by bdev_offset_from_zone_start



Call bdev_offset_from_zone_start() instead of open-coding it.

Fixes: dd291d77 ("block: Introduce zone write plugging")
Signed-off-by: default avatarLongPing Wei <weilongping@oppo.com>
Reviewed-by: default avatarDamien Le Moal <dlemoal@kernel.org>
Reviewed-by: default avatarBart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20241107020439.1644577-1-weilongping@oppo.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 86e6ca55
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment