]> www.infradead.org Git - users/hch/misc.git/commit
nvme: zns: Simplify nvme_zone_parse_entry()
authorDamien Le Moal <dlemoal@kernel.org>
Thu, 13 Mar 2025 05:25:20 +0000 (14:25 +0900)
committerKeith Busch <kbusch@kernel.org>
Thu, 20 Mar 2025 23:53:55 +0000 (16:53 -0700)
commit945e82633ecfd54015d2447a9ba05941665db2ee
tree38c8a9efef853229ac444c295b6c74a721453790
parentba65af9a2a0d90f2c3ef6c80793d79eba154945b
nvme: zns: Simplify nvme_zone_parse_entry()

Instead of passing a pointer to a struct nvme_ctrl and a pointer to a
struct nvme_ns_head as the first two arguments of
nvme_zone_parse_entry(), pass only a pointer to a struct nvme_ns as both
the controller structure and ns head structure can be infered from the
namespace structure.

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/zns.c