]> git.baikalelectronics.ru Git - kernel.git/commitdiff
nvme: rename nvme_validate_or_alloc_ns to nvme_scan_ns
authorChristoph Hellwig <hch@lst.de>
Tue, 12 Jul 2022 16:07:53 +0000 (18:07 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Aug 2022 23:22:51 +0000 (17:22 -0600)
This shorter name much better fits what this function does in
the scanning process.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Javier González <javier.gonz@samsung.com>
Reviewed-by: Joel Granados <j.granados@samsung.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c

index 6bba92e12c5475f376f674b1dd6ee880a0797ac1..c8d7bb06e371eca5af2ad4ca0c75f3fb54f98d4c 100644 (file)
@@ -4284,7 +4284,7 @@ out:
                nvme_ns_remove(ns);
 }
 
-static void nvme_validate_or_alloc_ns(struct nvme_ctrl *ctrl, unsigned nsid)
+static void nvme_scan_ns(struct nvme_ctrl *ctrl, unsigned nsid)
 {
        struct nvme_ns_ids ids = { };
        struct nvme_id_ns_cs_indep *id;
@@ -4392,7 +4392,7 @@ static int nvme_scan_ns_list(struct nvme_ctrl *ctrl)
 
                        if (!nsid)      /* end of the list? */
                                goto out;
-                       nvme_validate_or_alloc_ns(ctrl, nsid);
+                       nvme_scan_ns(ctrl, nsid);
                        while (++prev < nsid)
                                nvme_ns_remove_by_nsid(ctrl, prev);
                }
@@ -4415,7 +4415,7 @@ static void nvme_scan_ns_sequential(struct nvme_ctrl *ctrl)
        kfree(id);
 
        for (i = 1; i <= nn; i++)
-               nvme_validate_or_alloc_ns(ctrl, i);
+               nvme_scan_ns(ctrl, i);
 
        nvme_remove_invalid_namespaces(ctrl, nn);
 }