Home
last modified time | relevance | path

Searched refs:ns (Results 1 – 25 of 41) sorted by relevance

12

/fs/
Dnsfs.c36 struct ns_common *ns = inode->i_private; in ns_prune_dentry() local
37 atomic_long_set(&ns->stashed, 0); in ns_prune_dentry()
50 struct ns_common *ns = inode->i_private; in nsfs_evict() local
52 ns->ops->put(ns); in nsfs_evict()
55 static void *__ns_get_path(struct path *path, struct ns_common *ns) in __ns_get_path() argument
63 d = atomic_long_read(&ns->stashed); in __ns_get_path()
70 ns->ops->put(ns); in __ns_get_path()
79 ns->ops->put(ns); in __ns_get_path()
82 inode->i_ino = ns->inum; in __ns_get_path()
87 inode->i_private = ns; in __ns_get_path()
[all …]
Dnamespace.c670 struct mnt_namespace *ns = current->nsproxy->mnt_ns; in __is_local_mountpoint() local
678 list_for_each_entry(mnt, &ns->list, mnt_list) { in __is_local_mountpoint()
784 static void touch_mnt_namespace(struct mnt_namespace *ns) in touch_mnt_namespace() argument
786 if (ns) { in touch_mnt_namespace()
787 ns->event = ++event; in touch_mnt_namespace()
788 wake_up_interruptible(&ns->poll); in touch_mnt_namespace()
795 static void __touch_mnt_namespace(struct mnt_namespace *ns) in __touch_mnt_namespace() argument
797 if (ns && ns->event != event) { in __touch_mnt_namespace()
798 ns->event = event; in __touch_mnt_namespace()
799 wake_up_interruptible(&ns->poll); in __touch_mnt_namespace()
[all …]
Dproc_namespace.c25 struct mnt_namespace *ns = p->ns; in mounts_poll() local
29 poll_wait(file, &p->ns->poll, wait); in mounts_poll()
31 event = READ_ONCE(ns->event); in mounts_poll()
247 struct mnt_namespace *ns = NULL; in mounts_open_common() local
263 ns = nsp->mnt_ns; in mounts_open_common()
264 get_mnt_ns(ns); in mounts_open_common()
280 m->poll_event = ns->event; in mounts_open_common()
283 p->ns = ns; in mounts_open_common()
293 put_mnt_ns(ns); in mounts_open_common()
303 put_mnt_ns(p->ns); in mounts_release()
Dmount.h10 struct ns_common ns; member
115 static inline void get_mnt_ns(struct mnt_namespace *ns) in get_mnt_ns() argument
117 atomic_inc(&ns->count); in get_mnt_ns()
133 struct mnt_namespace *ns; member
152 static inline bool is_anon_ns(struct mnt_namespace *ns) in is_anon_ns() argument
154 return ns->seq == 0; in is_anon_ns()
/fs/kernfs/
Ddir.c299 static unsigned int kernfs_name_hash(const char *name, const void *ns) in kernfs_name_hash() argument
301 unsigned long hash = init_name_hash(ns); in kernfs_name_hash()
316 const void *ns, const struct kernfs_node *kn) in kernfs_name_compare() argument
322 if (ns < kn->ns) in kernfs_name_compare()
324 if (ns > kn->ns) in kernfs_name_compare()
332 return kernfs_name_compare(left->hash, left->name, left->ns, right); in kernfs_sd_compare()
583 kernfs_info(dentry->d_sb)->ns != kn->ns) in kernfs_dop_revalidate()
777 if (WARN(has_ns != (bool)kn->ns, KERN_WARNING "kernfs: ns %s in '%s' for '%s'\n", in kernfs_add_one()
791 kn->hash = kernfs_name_hash(kn->name, kn->ns); in kernfs_add_one()
833 const void *ns) in kernfs_find_ns() argument
[all …]
Dmount.c259 return sb_info->root == info->root && sb_info->ns == info->ns; in kernfs_test_super()
280 return info->ns; in kernfs_super_ns()
304 info->ns = kfc->ns_tag; in kernfs_get_tree()
Dsymlink.c45 kn->ns = target->ns; in kernfs_create_link()
/fs/proc/
Droot.c196 struct pid_namespace *ns; in proc_kill_sb() local
198 ns = (struct pid_namespace *)sb->s_fs_info; in proc_kill_sb()
199 if (ns->proc_self) in proc_kill_sb()
200 dput(ns->proc_self); in proc_kill_sb()
201 if (ns->proc_thread_self) in proc_kill_sb()
202 dput(ns->proc_thread_self); in proc_kill_sb()
204 put_pid_ns(ns); in proc_kill_sb()
302 int pid_ns_prepare_proc(struct pid_namespace *ns) in pid_ns_prepare_proc() argument
312 if (fc->user_ns != ns->user_ns) { in pid_ns_prepare_proc()
314 fc->user_ns = get_user_ns(ns->user_ns); in pid_ns_prepare_proc()
[all …]
Darray.c152 static inline void task_state(struct seq_file *m, struct pid_namespace *ns, in task_state() argument
165 task_tgid_nr_ns(rcu_dereference(p->real_parent), ns) : 0; in task_state()
169 tpid = task_pid_nr_ns(tracer, ns); in task_state()
171 tgid = task_tgid_nr_ns(p, ns); in task_state()
190 seq_put_decimal_ull(m, "\nPid:\t", pid_nr_ns(pid, ns)); in task_state()
214 for (g = ns->level; g <= pid->level; g++) in task_state()
215 seq_put_decimal_ull(m, "\t", task_tgid_nr_ns(p, pid->numbers[g].ns)); in task_state()
217 for (g = ns->level; g <= pid->level; g++) in task_state()
218 seq_put_decimal_ull(m, "\t", task_pid_nr_ns(p, pid->numbers[g].ns)); in task_state()
220 for (g = ns->level; g <= pid->level; g++) in task_state()
[all …]
Dthread_self.c15 struct pid_namespace *ns = proc_pid_ns(inode); in proc_thread_self_get_link() local
16 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_thread_self_get_link()
17 pid_t pid = task_pid_nr_ns(current, ns); in proc_thread_self_get_link()
39 struct pid_namespace *ns = proc_pid_ns(root_inode); in proc_setup_thread_self() local
65 ns->proc_thread_self = thread_self; in proc_setup_thread_self()
Dbase.c384 static int proc_pid_wchan(struct seq_file *m, struct pid_namespace *ns, in proc_pid_wchan() argument
426 static int proc_pid_stack(struct seq_file *m, struct pid_namespace *ns, in proc_pid_stack() argument
474 static int proc_pid_schedstat(struct seq_file *m, struct pid_namespace *ns, in proc_pid_schedstat() argument
548 static int proc_oom_score(struct seq_file *m, struct pid_namespace *ns, in proc_oom_score() argument
585 static int proc_pid_limits(struct seq_file *m, struct pid_namespace *ns, in proc_pid_limits() argument
629 static int proc_pid_syscall(struct seq_file *m, struct pid_namespace *ns, in proc_pid_syscall() argument
748 struct pid_namespace *ns = proc_pid_ns(inode); in proc_single_show() local
757 ret = PROC_I(inode)->op.proc_show(m, ns, pid, task); in proc_single_show()
1417 struct pid_namespace *ns = proc_pid_ns(inode); in sched_show() local
1423 proc_sched_show_task(p, ns, m); in sched_show()
[all …]
Dself.c15 struct pid_namespace *ns = proc_pid_ns(inode); in proc_self_get_link() local
16 pid_t tgid = task_tgid_nr_ns(current, ns); in proc_self_get_link()
39 struct pid_namespace *ns = proc_pid_ns(root_inode); in proc_setup_self() local
65 ns->proc_self = self; in proc_setup_self()
Dproc_net.c257 struct nsproxy *ns; in get_proc_task_net() local
264 ns = task->nsproxy; in get_proc_task_net()
265 if (ns != NULL) in get_proc_task_net()
266 net = get_net(ns->net_ns); in get_proc_task_net()
/fs/ntfs/
Dunistr.c326 unsigned char *ns; in ntfs_ucstonls() local
331 ns = *outs; in ntfs_ucstonls()
333 if (ns && !ns_len) { in ntfs_ucstonls()
337 if (!ns) { in ntfs_ucstonls()
339 ns = kmalloc(ns_len + 1, GFP_NOFS); in ntfs_ucstonls()
340 if (!ns) in ntfs_ucstonls()
344 retry: wc = nls->uni2char(le16_to_cpu(ins[i]), ns + o, in ntfs_ucstonls()
351 else if (wc == -ENAMETOOLONG && ns != *outs) { in ntfs_ucstonls()
357 memcpy(tc, ns, ns_len); in ntfs_ucstonls()
359 kfree(ns); in ntfs_ucstonls()
[all …]
/fs/sysfs/
Dsymlink.c124 const void *ns = NULL; in sysfs_delete_link() local
133 ns = targ->sd->ns; in sysfs_delete_link()
135 kernfs_remove_by_name_ns(kobj->sd, name, ns); in sysfs_delete_link()
179 old_ns = targ->sd->ns; in sysfs_rename_link_ns()
Dfile.c247 umode_t mode, kuid_t uid, kgid_t gid, const void *ns) in sysfs_add_file_mode_ns() argument
306 size, ops, (void *)attr, ns, key); in sysfs_add_file_mode_ns()
322 const void *ns) in sysfs_create_file_ns() argument
332 uid, gid, ns); in sysfs_create_file_ns()
465 const void *ns) in sysfs_remove_file_ns() argument
469 kernfs_remove_by_name_ns(parent, attr->name, ns); in sysfs_remove_file_ns()
Dmount.c84 void *ns = (void *)kernfs_super_ns(sb); in sysfs_kill_sb() local
87 kobj_ns_drop(KOBJ_NS_TYPE_NET, ns); in sysfs_kill_sb()
Ddir.c40 int sysfs_create_dir_ns(struct kobject *kobj, const void *ns) in sysfs_create_dir_ns() argument
61 kobj, ns); in sysfs_create_dir_ns()
Dsysfs.h33 const void *ns);
/fs/nfs/
Dcallback.c55 nn->nfs_callback_tcpport, PF_INET, net->ns.inum); in nfs4_callback_up_net()
63 nn->nfs_callback_tcpport6, PF_INET6, net->ns.inum); in nfs4_callback_up_net()
191 dprintk("NFS: destroy per-net callback data; net=%x\n", net->ns.inum); in nfs_callback_down_net()
204 dprintk("NFS: create per-net callback data; net=%x\n", net->ns.inum); in nfs_callback_up_net()
231 "net = %x\n", ret, net->ns.inum); in nfs_callback_up_net()
/fs/lockd/
Dsvc.c271 dprintk("%s: per-net data created; net=%x\n", __func__, net->ns.inum); in lockd_up_net()
290 __func__, net->ns.inum); in lockd_down_net()
294 __func__, nlmsvc_task, net->ns.inum); in lockd_down_net()
704 net->ns.inum, __func__); in lockd_exit_net()
707 net->ns.inum, __func__); in lockd_exit_net()
710 net->ns.inum, __func__); in lockd_exit_net()
Dhost.c591 net->ns.inum); in nlm_complain_hosts()
593 net->ns.inum); in nlm_complain_hosts()
606 host->h_inuse, host->h_expires, host->net->ns.inum); in nlm_complain_hosts()
620 net ? net->ns.inum : 0); in nlm_shutdown_hosts_net()
661 net ? net->ns.inum : 0); in nlm_gc_hosts()
679 host->net->ns.inum); in nlm_gc_hosts()
Dmon.c115 host->net->ns.inum); in nsm_mon_unmon()
265 s64 ns; in nsm_init_private() local
267 ns = ktime_get_ns(); in nsm_init_private()
268 put_unaligned(ns, p); in nsm_init_private()
/fs/nfs_common/
Dgrace.c38 net->ns.inum, (net == &init_net) ? "(init_net)" : ""); in locks_start_grace()
114 net->ns.inum, __func__); in grace_exit_net()
/fs/ocfs2/cluster/
Dnodemanager.c691 struct o2nm_node_group *ns = NULL; in o2nm_cluster_group_make_group() local
700 ns = kzalloc(sizeof(struct o2nm_node_group), GFP_KERNEL); in o2nm_cluster_group_make_group()
702 if (cluster == NULL || ns == NULL || o2hb_group == NULL) in o2nm_cluster_group_make_group()
707 configfs_add_default_group(&ns->ns_group, &cluster->cl_group); in o2nm_cluster_group_make_group()
709 config_group_init_type_name(&ns->ns_group, "node", in o2nm_cluster_group_make_group()
726 kfree(ns); in o2nm_cluster_group_make_group()

12