Skip to content

Cleanup blkdev zone helpers

Damien Le Moal linux-block 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3null_blk: Do not set disk->nr_zonesdrivers/block/null_blk/zoned.c+0 -22 replies
2/3block: Define bdev_nr_zones() as an inline functionblock/blk-zoned.c include/linux/blkdev.h+5 -192 replies
3/3block: Cleanup block device zone helpersinclude/linux/blkdev.h+12 -323 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchChristoph HellwigJohannes Thumshirn
1/3R-b R-b
2/3R-b R-b
3/3R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] Cleanup blkdev zone helpers

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(-)
Signature · 1 line
2.45.2