]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
block: get wp_offset by bdev_offset_from_zone_start
authorLongPing Wei <weilongping@oppo.com>
Thu, 7 Nov 2024 02:04:41 +0000 (10:04 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Dec 2024 17:13:16 +0000 (18:13 +0100)
commite7b02a0febbcd76b62c6827c52fed1d035713d0d
treeb695896ed07da65179665b29a4d374428f7baa18
parent0749982c51daf045b227934c833b519cd759f5bb
block: get wp_offset by bdev_offset_from_zone_start

[ Upstream commit 790eb09e59709a1ffc1c64fe4aae2789120851b0 ]

Call bdev_offset_from_zone_start() instead of open-coding it.

Fixes: dd291d77cc90 ("block: Introduce zone write plugging")
Signed-off-by: LongPing Wei <weilongping@oppo.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20241107020439.1644577-1-weilongping@oppo.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
block/blk-zoned.c