Lines Matching refs:node

119 static inline struct mnt_namespace *node_to_mnt_ns(const struct rb_node *node)  in node_to_mnt_ns()  argument
121 if (!node) in node_to_mnt_ns()
123 return rb_entry(node, struct mnt_namespace, mnt_ns_tree_node); in node_to_mnt_ns()
152 struct rb_node *node, *prev; in mnt_ns_tree_add() local
155 node = rb_find_add_rcu(&ns->mnt_ns_tree_node, &mnt_ns_tree, mnt_ns_cmp); in mnt_ns_tree_add()
167 WARN_ON_ONCE(node); in mnt_ns_tree_add()
199 static int mnt_ns_find(const void *key, const struct rb_node *node) in mnt_ns_find() argument
202 const struct mnt_namespace *ns = node_to_mnt_ns(node); in mnt_ns_find()
228 struct rb_node *node; in lookup_mnt_ns() local
234 node = rb_find_rcu(&mnt_ns_id, &mnt_ns_tree, mnt_ns_find); in lookup_mnt_ns()
235 if (node) in lookup_mnt_ns()
239 if (!node) in lookup_mnt_ns()
246 ns = node_to_mnt_ns(node); in lookup_mnt_ns()
1165 static inline struct mount *node_to_mount(struct rb_node *node) in node_to_mount() argument
1167 return node ? rb_entry(node, struct mount, mnt_node) : NULL; in node_to_mount()
1444 struct llist_node *node = llist_del_all(&delayed_mntput_list); in delayed_mntput() local
1447 llist_for_each_entry_safe(m, t, node, mnt_llist) in delayed_mntput()
1597 struct rb_node *node = ns->mounts.rb_node; in mnt_find_id_at() local
1600 while (node) { in mnt_find_id_at()
1601 struct mount *m = node_to_mount(node); in mnt_find_id_at()
1604 ret = node_to_mount(node); in mnt_find_id_at()
1607 node = node->rb_left; in mnt_find_id_at()
1609 node = node->rb_right; in mnt_find_id_at()
1621 struct rb_node *node = ns->mounts.rb_node; in mnt_find_id_at_reverse() local
1624 while (node) { in mnt_find_id_at_reverse()
1625 struct mount *m = node_to_mount(node); in mnt_find_id_at_reverse()
1628 ret = node_to_mount(node); in mnt_find_id_at_reverse()
1631 node = node->rb_right; in mnt_find_id_at_reverse()
1633 node = node->rb_left; in mnt_find_id_at_reverse()
1654 struct rb_node *node = rb_next(&mnt->mnt_node); in m_next() local
1657 if (node) { in m_next()
1658 next = node_to_mount(node); in m_next()
5751 struct rb_node *node; in listmnt_next() local
5754 node = rb_prev(&curr->mnt_node); in listmnt_next()
5756 node = rb_next(&curr->mnt_node); in listmnt_next()
5758 return node_to_mount(node); in listmnt_next()