block: Cleanup blk_revalidate_zone_cb()
authorDamien Le Moal <dlemoal@kernel.org>
Wed, 1 May 2024 11:09:07 +0000 (20:09 +0900)
committerJens Axboe <axboe@kernel.dk>
Wed, 1 May 2024 14:08:43 +0000 (08:08 -0600)
commitd7580149efc5c86c4e72f9263b97c062616a84dd
tree6b8c68ac7f7f03adb57920c1e23010faf46cc494
parentc9c8aea03c4ac2ea902bc7dd5ba14f5d78af8ece
block: Cleanup blk_revalidate_zone_cb()

Define the code for checking conventional and sequential write required
zones suing the functions blk_revalidate_conv_zone() and
blk_revalidate_seq_zone() respectively. This simplifies the zone type
switch-case in blk_revalidate_zone_cb().

No functional changes.

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20240501110907.96950-15-dlemoal@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-zoned.c