kernel-hacking-2024-linux-s.../arch/powerpc/platforms/cell/spufs
Eric W. Biederman 17cf22c33e pidns: Use task_active_pid_ns where appropriate
The expressions tsk->nsproxy->pid_ns and task_active_pid_ns
aka ns_of_pid(task_pid(tsk)) should have the same number of
cache line misses with the practical difference that
ns_of_pid(task_pid(tsk)) is released later in a processes life.

Furthermore by using task_active_pid_ns it becomes trivial
to write an unshare implementation for the the pid namespace.

So I have used task_active_pid_ns everywhere I can.

In fork since the pid has not yet been attached to the
process I use ns_of_pid, to achieve the same effect.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
2012-11-19 05:59:09 -08:00
..
.gitignore
backing_ops.c powerpc: remove non-required uses of include <linux/module.h> 2011-10-31 19:30:44 -04:00
context.c powerpc: remove non-required uses of include <linux/module.h> 2011-10-31 19:30:44 -04:00
coredump.c switch spufs/coredump to iterate_fd() 2012-09-26 21:10:00 -04:00
fault.c powerpc: remove non-required uses of include <linux/module.h> 2011-10-31 19:30:44 -04:00
file.c
gang.c
hw_ops.c powerpc: remove non-required uses of include <linux/module.h> 2011-10-31 19:30:44 -04:00
inode.c pull unlock+dput() out into do_spu_create() 2012-07-29 21:24:13 +04:00
lscsa_alloc.c
Makefile
run.c
sched.c pidns: Use task_active_pid_ns where appropriate 2012-11-19 05:59:09 -08:00
spu_restore.c
spu_restore_crt0.S
spu_restore_dump.h_shipped
spu_save.c
spu_save_crt0.S
spu_save_dump.h_shipped
spu_utils.h
spufs.h switch spufs guts to umode_t 2012-01-03 22:55:15 -05:00
sputrace.h
switch.c
syscalls.c new helper: done_path_create() 2012-07-29 21:24:13 +04:00