Unverified Commit 10cdfcd3 authored by Christian Brauner's avatar Christian Brauner
Browse files

nstree: make struct ns_tree private



Don't expose it directly. There's no need to do that.

Reviewed-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent d969328c
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -9,19 +9,6 @@
#include <linux/rculist.h>
#include <linux/cookie.h>

/**
 * struct ns_tree - Namespace tree
 * @ns_tree: Rbtree of namespaces of a particular type
 * @ns_list: Sequentially walkable list of all namespaces of this type
 * @ns_tree_lock: Seqlock to protect the tree and list
 */
struct ns_tree {
	struct rb_root ns_tree;
	struct list_head ns_list;
	seqlock_t ns_tree_lock;
	int type;
};

extern struct ns_tree cgroup_ns_tree;
extern struct ns_tree ipc_ns_tree;
extern struct ns_tree mnt_ns_tree;
+14 −0
Original line number Diff line number Diff line
@@ -4,6 +4,20 @@
#include <linux/proc_ns.h>
#include <linux/vfsdebug.h>

/**
 * struct ns_tree - Namespace tree
 * @ns_tree: Rbtree of namespaces of a particular type
 * @ns_list: Sequentially walkable list of all namespaces of this type
 * @ns_tree_lock: Seqlock to protect the tree and list
 * @type: type of namespaces in this tree
 */
struct ns_tree {
       struct rb_root ns_tree;
       struct list_head ns_list;
       seqlock_t ns_tree_lock;
       int type;
};

struct ns_tree mnt_ns_tree = {
	.ns_tree = RB_ROOT,
	.ns_list = LIST_HEAD_INIT(mnt_ns_tree.ns_list),