to_pid_ns
return current_in_namespace(to_pid_ns(ns));
if (!current_in_namespace(to_pid_ns(ns))) {
owning_ns = to_pid_ns(ns)->user_ns;
} else if (!READ_ONCE(to_pid_ns(ns)->child_reaper)) {
put_pid_ns(to_pid_ns(ns));
struct pid_namespace *new = to_pid_ns(ns);
pid_ns = p = to_pid_ns(ns)->parent;
return to_pid_ns(ns)->user_ns;