hw/block/nvme: rename __nvme_advance_zone_wp
Get rid of the (reserved) double underscore use. Cc: Philippe Mathieu-Daudé <philmd@redhat.com> Cc: Thomas Huth <thuth@redhat.com> Signed-off-by: Klaus Jensen <k.jensen@samsung.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Keith Busch <kbusch@kernel.org>
This commit is contained in:
parent
c6dfa9d6b4
commit
7dbe53778e
@ -1757,7 +1757,7 @@ static inline uint16_t nvme_zrm_open(NvmeNamespace *ns, NvmeZone *zone)
|
||||
return nvme_zrm_open_flags(ns, zone, 0);
|
||||
}
|
||||
|
||||
static void __nvme_advance_zone_wp(NvmeNamespace *ns, NvmeZone *zone,
|
||||
static void nvme_advance_zone_wp(NvmeNamespace *ns, NvmeZone *zone,
|
||||
uint32_t nlb)
|
||||
{
|
||||
zone->d.wp += nlb;
|
||||
@ -1778,7 +1778,7 @@ static void nvme_finalize_zoned_write(NvmeNamespace *ns, NvmeRequest *req)
|
||||
nlb = le16_to_cpu(rw->nlb) + 1;
|
||||
zone = nvme_get_zone_by_slba(ns, slba);
|
||||
|
||||
__nvme_advance_zone_wp(ns, zone, nlb);
|
||||
nvme_advance_zone_wp(ns, zone, nlb);
|
||||
}
|
||||
|
||||
static inline bool nvme_is_write(NvmeRequest *req)
|
||||
@ -2167,7 +2167,7 @@ out:
|
||||
uint64_t sdlba = le64_to_cpu(copy->sdlba);
|
||||
NvmeZone *zone = nvme_get_zone_by_slba(ns, sdlba);
|
||||
|
||||
__nvme_advance_zone_wp(ns, zone, ctx->nlb);
|
||||
nvme_advance_zone_wp(ns, zone, ctx->nlb);
|
||||
}
|
||||
|
||||
g_free(ctx->bounce);
|
||||
|
Loading…
Reference in New Issue
Block a user