hw/block/nvme: rename __nvme_zrm_open
commitc6dfa9d6b4b460a7dcf033478606fb17f8c5b0fa
authorKlaus Jensen <k.jensen@samsung.com>
Thu, 15 Apr 2021 06:37:36 +0000 (15 08:37 +0200)
committerKlaus Jensen <k.jensen@samsung.com>
Mon, 17 May 2021 07:15:13 +0000 (17 09:15 +0200)
tree652ada53c2bc0efe039705f769a5a28f20d02162
parent312c3531bba416e589f106db8c8241fc6e7e6332
hw/block/nvme: rename __nvme_zrm_open

Get rid of the (reserved) double underscore use. Rename the "generic"
zone open function to nvme_zrm_open_flags() and add a generic `int
flags` argument instead which allows more flags to be easily added in
the future. There is at least one TP under standardization that would
add an additional flag.

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>
hw/block/nvme.c