aboutsummaryrefslogtreecommitdiff
path: root/drivers/nvme/host/zns.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-08-20 14:02:18 +0200
committerChristoph Hellwig <hch@lst.de>2020-10-07 07:56:17 +0200
commitd525c3c023221619748d1e758e5a26daa775f822 (patch)
tree05799b2397b875961058d1073827e0f5d528644d /drivers/nvme/host/zns.c
parent7fad20dd7c0ab1d2c224755a574576be25f13e03 (diff)
nvme: remove the disk argument to nvme_update_zone_info
The queue can trivially be derived from the nvme_ns structure. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Keith Busch <kbusch@kernel.org> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Diffstat (limited to 'drivers/nvme/host/zns.c')
-rw-r--r--drivers/nvme/host/zns.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/nvme/host/zns.c b/drivers/nvme/host/zns.c
index 56d708017d06..67e87e9f306f 100644
--- a/drivers/nvme/host/zns.c
+++ b/drivers/nvme/host/zns.c
@@ -46,11 +46,10 @@ static int nvme_set_max_append(struct nvme_ctrl *ctrl)
return 0;
}
-int nvme_update_zone_info(struct gendisk *disk, struct nvme_ns *ns,
- unsigned lbaf)
+int nvme_update_zone_info(struct nvme_ns *ns, unsigned lbaf)
{
struct nvme_effects_log *log = ns->head->effects;
- struct request_queue *q = disk->queue;
+ struct request_queue *q = ns->queue;
struct nvme_command c = { };
struct nvme_id_ns_zns *id;
int status;