projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ca40c2
)
kernel/pid.c: move statement
author
Raphael S. Carvalho
<raphael.scarv@gmail.com>
Wed, 3 Jul 2013 22:09:02 +0000
(15:09 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:08:05 +0000
(16:08 -0700)
Move statement to static initilization of init_pid_ns.
Signed-off-by: Raphael S. Carvalho <raphael.scarv@gmail.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/pid.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/pid.c
b/kernel/pid.c
index 61980cefb1f5e465cb4a6dae00a93b612d282e42..66505c1dfc516f3985e2072029152291cd0bedf9 100644
(file)
--- a/
kernel/pid.c
+++ b/
kernel/pid.c
@@
-75,6
+75,7
@@
struct pid_namespace init_pid_ns = {
[ 0 ... PIDMAP_ENTRIES-1] = { ATOMIC_INIT(BITS_PER_PAGE), NULL }
},
.last_pid = 0,
+ .nr_hashed = PIDNS_HASH_ADDING,
.level = 0,
.child_reaper = &init_task,
.user_ns = &init_user_ns,
@@
-590,7
+591,6
@@
void __init pidmap_init(void)
/* Reserve PID 0. We never call free_pidmap(0) */
set_bit(0, init_pid_ns.pidmap[0].page);
atomic_dec(&init_pid_ns.pidmap[0].nr_free);
- init_pid_ns.nr_hashed = PIDNS_HASH_ADDING;
init_pid_ns.pid_cachep = KMEM_CACHE(pid,
SLAB_HWCACHE_ALIGN | SLAB_PANIC);