diff options
author | Christoph Hellwig <hch@lst.de> | 2019-11-11 05:39:27 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-11-13 05:12:01 +0300 |
commit | 7fc8fb51a143a7efc9b199179e43a6d28f69b1f9 (patch) | |
tree | c4ad2bb527857d4caed734b9f1be17a1cf4c01f9 /drivers/block/null_blk_zoned.c | |
parent | e3f89564c557ab756fd147cfe68648b935bc5b42 (diff) | |
download | linux-7fc8fb51a143a7efc9b199179e43a6d28f69b1f9.tar.xz |
null_blk: clean up report zones
Make the instance name match the method name and define the name to NULL
instead of providing an inline stub, which is rather pointless for a
method call.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/null_blk_zoned.c')
-rw-r--r-- | drivers/block/null_blk_zoned.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/null_blk_zoned.c b/drivers/block/null_blk_zoned.c index 02f41a3bc4cb..00696f16664b 100644 --- a/drivers/block/null_blk_zoned.c +++ b/drivers/block/null_blk_zoned.c @@ -66,8 +66,8 @@ void null_zone_exit(struct nullb_device *dev) kvfree(dev->zones); } -int null_zone_report(struct gendisk *disk, sector_t sector, - struct blk_zone *zones, unsigned int *nr_zones) +int null_report_zones(struct gendisk *disk, sector_t sector, + struct blk_zone *zones, unsigned int *nr_zones) { struct nullb *nullb = disk->private_data; struct nullb_device *dev = nullb->dev; |