mbox series

[0/3] Cleanup blkdev zone helpers

Message ID 20240621031506.759397-1-dlemoal@kernel.org (mailing list archive)
Headers show
Series Cleanup blkdev zone helpers | expand

Message

Damien Le Moal June 21, 2024, 3:15 a.m. UTC
The first patch removes a useless initialization of the number of zones
of a zoned null_blk device. The following 2 patches rework the zone
related inline helper functions in blkdev.h to simplify their
definition, removing uneeded code.

Damien Le Moal (3):
  null_blk: Do not set disk->nr_zones
  block: Define bdev_nr_zones() as an inline function
  block: Cleanup block device zone helpers

 block/blk-zoned.c              | 18 -------------
 drivers/block/null_blk/zoned.c |  2 --
 include/linux/blkdev.h         | 46 +++++++++++-----------------------
 3 files changed, 15 insertions(+), 51 deletions(-)

Comments

Jens Axboe June 21, 2024, 6:32 p.m. UTC | #1
On Fri, 21 Jun 2024 12:15:03 +0900, Damien Le Moal wrote:
> The first patch removes a useless initialization of the number of zones
> of a zoned null_blk device. The following 2 patches rework the zone
> related inline helper functions in blkdev.h to simplify their
> definition, removing uneeded code.
> 
> Damien Le Moal (3):
>   null_blk: Do not set disk->nr_zones
>   block: Define bdev_nr_zones() as an inline function
>   block: Cleanup block device zone helpers
> 
> [...]

Applied, thanks!

[1/3] null_blk: Do not set disk->nr_zones
      commit: 4ac9056e4bd787f1ba2001167c5acc2b5a75ddf9
[2/3] block: Define bdev_nr_zones() as an inline function
      commit: b6cfe2287df6e26d685af8a8a96ed1bf87bdde28
[3/3] block: Cleanup block device zone helpers
      commit: caaf7101c01a91a882d3da2f566579dda692367d

Best regards,