Home
last modified time | relevance | path

Searched refs:new_ns (Results 1 – 3 of 3) sorted by relevance

/fs/
Dnamespace.c2263 struct mnt_namespace *new_ns; in alloc_mnt_ns() local
2266 new_ns = kmalloc(sizeof(struct mnt_namespace), GFP_KERNEL); in alloc_mnt_ns()
2267 if (!new_ns) in alloc_mnt_ns()
2269 ret = proc_alloc_inum(&new_ns->proc_inum); in alloc_mnt_ns()
2271 kfree(new_ns); in alloc_mnt_ns()
2274 new_ns->seq = atomic64_add_return(1, &mnt_ns_seq); in alloc_mnt_ns()
2275 atomic_set(&new_ns->count, 1); in alloc_mnt_ns()
2276 new_ns->root = NULL; in alloc_mnt_ns()
2277 INIT_LIST_HEAD(&new_ns->list); in alloc_mnt_ns()
2278 init_waitqueue_head(&new_ns->poll); in alloc_mnt_ns()
[all …]
/fs/sysfs/
Ddir.c858 struct sysfs_dirent *new_parent_sd, const void *new_ns, in sysfs_rename() argument
867 if ((sd->s_parent == new_parent_sd) && (sd->s_ns == new_ns) && in sysfs_rename()
872 if (sysfs_find_dirent(new_parent_sd, new_ns, new_name)) in sysfs_rename()
890 sd->s_ns = new_ns; in sysfs_rename()
905 const void *new_ns = NULL; in sysfs_rename_dir() local
908 new_ns = kobj->ktype->namespace(kobj); in sysfs_rename_dir()
910 return sysfs_rename(kobj->sd, parent_sd, new_ns, new_name); in sysfs_rename_dir()
917 const void *new_ns = NULL; in sysfs_move_dir() local
921 new_ns = kobj->ktype->namespace(kobj); in sysfs_move_dir()
925 return sysfs_rename(sd, new_parent_sd, new_ns, sd->s_name); in sysfs_move_dir()
Dsymlink.c176 const void *old_ns = NULL, *new_ns = NULL; in sysfs_rename_link() local
199 new_ns = targ->ktype->namespace(targ); in sysfs_rename_link()
201 result = sysfs_rename(sd, parent_sd, new_ns, new); in sysfs_rename_link()