• Home
  • Raw
  • Download

Lines Matching refs:ns

306 static unsigned int kernfs_name_hash(const char *name, const void *ns)  in kernfs_name_hash()  argument
308 unsigned long hash = init_name_hash(ns); in kernfs_name_hash()
323 const void *ns, const struct kernfs_node *kn) in kernfs_name_compare() argument
329 if (ns < kn->ns) in kernfs_name_compare()
331 if (ns > kn->ns) in kernfs_name_compare()
339 return kernfs_name_compare(left->hash, left->name, left->ns, right); in kernfs_sd_compare()
752 if (WARN(has_ns != (bool)kn->ns, KERN_WARNING "kernfs: ns %s in '%s' for '%s'\n", in kernfs_add_one()
766 kn->hash = kernfs_name_hash(kn->name, kn->ns); in kernfs_add_one()
808 const void *ns) in kernfs_find_ns() argument
816 if (has_ns != (bool)ns) { in kernfs_find_ns()
822 hash = kernfs_name_hash(name, ns); in kernfs_find_ns()
828 result = kernfs_name_compare(hash, name, ns, kn); in kernfs_find_ns()
841 const void *ns) in kernfs_walk_ns() argument
862 parent = kernfs_find_ns(parent, name, ns); in kernfs_walk_ns()
881 const char *name, const void *ns) in kernfs_find_and_get_ns() argument
887 kn = kernfs_find_ns(parent, name, ns); in kernfs_find_and_get_ns()
906 const char *path, const void *ns) in kernfs_walk_and_get_ns() argument
912 kn = kernfs_walk_ns(parent, path, ns); in kernfs_walk_and_get_ns()
1011 void *priv, const void *ns) in kernfs_create_dir_ns() argument
1023 kn->ns = ns; in kernfs_create_dir_ns()
1056 kn->ns = NULL; in kernfs_create_empty_dir()
1121 kernfs_info(dentry->d_sb)->ns != kn->ns) in kernfs_dop_revalidate()
1143 const void *ns = NULL; in kernfs_iop_lookup() local
1148 ns = kernfs_info(dir->i_sb)->ns; in kernfs_iop_lookup()
1150 kn = kernfs_find_ns(parent, dentry->d_name.name, ns); in kernfs_iop_lookup()
1577 const void *ns) in kernfs_remove_by_name_ns() argument
1591 kn = kernfs_find_ns(parent, name, ns); in kernfs_remove_by_name_ns()
1634 if ((kn->parent == new_parent) && (kn->ns == new_ns) && in kernfs_rename_ns()
1664 kn->ns = new_ns; in kernfs_rename_ns()
1672 kn->hash = kernfs_name_hash(kn->name, kn->ns); in kernfs_rename_ns()
1696 static struct kernfs_node *kernfs_dir_pos(const void *ns, in kernfs_dir_pos() argument
1720 while (pos && (!kernfs_active(pos) || pos->ns != ns)) { in kernfs_dir_pos()
1730 static struct kernfs_node *kernfs_dir_next_pos(const void *ns, in kernfs_dir_next_pos() argument
1733 pos = kernfs_dir_pos(ns, parent, ino, pos); in kernfs_dir_next_pos()
1741 } while (pos && (!kernfs_active(pos) || pos->ns != ns)); in kernfs_dir_next_pos()
1752 const void *ns = NULL; in kernfs_fop_readdir() local
1761 ns = kernfs_info(dentry->d_sb)->ns; in kernfs_fop_readdir()
1763 for (pos = kernfs_dir_pos(ns, parent, ctx->pos, pos); in kernfs_fop_readdir()
1765 pos = kernfs_dir_next_pos(ns, parent, ctx->pos, pos)) { in kernfs_fop_readdir()