/* SPDX-License-Identifier: GPL-2.0 */

#ifndef _LINUX_NSTREE_TYPES_H
#define _LINUX_NSTREE_TYPES_H

#include <linux/rbtree.h>
#include <linux/list.h>


struct ns_tree_root {
	struct rb_root ns_rb;
	struct list_head ns_list_head;
};


struct ns_tree_node {
	struct rb_node ns_node;
	struct list_head ns_list_entry;
};


struct ns_tree {
	u64 ns_id;
	atomic_t __ns_ref_active;
	struct ns_tree_node ns_unified_node;
	struct ns_tree_node ns_tree_node;
	struct ns_tree_node ns_owner_node;
	struct ns_tree_root ns_owner_root;
};

#endif 
