Commit 26d60dc4 authored by Ben Walker's avatar Ben Walker Committed by Tomasz Zawadzki
Browse files

nvme: Move active_ns_count next to ns in spdk_nvme_ctrlr



This is the count of items in the RB_TREE, so put the two next to each
other.

Signed-off-by: default avatarBen Walker <benjamin.walker@intel.com>
Change-Id: Ib30bee12e65065dc414b55e85cfffa2026057e9f
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10035


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarAleksey Marchuk <alexeymar@mellanox.com>
parent 517b5572
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -864,6 +864,9 @@ struct spdk_nvme_ctrlr {
	/* Tree of namespaces */
	RB_HEAD(nvme_ns_tree, spdk_nvme_ns)	ns;

	/* The number of active namespaces */
	uint32_t			active_ns_count;

	bool				is_removed;

	bool				is_resetting;
@@ -946,11 +949,6 @@ struct spdk_nvme_ctrlr {
	 */
	struct spdk_nvme_zns_ctrlr_data	*cdata_zns;

	/**
	 * Keep track of active namespaces
	 */
	uint32_t			active_ns_count;

	struct spdk_bit_array		*free_io_qids;
	TAILQ_HEAD(, spdk_nvme_qpair)	active_io_qpairs;