* [PATCH 1/1] kernel/pid.c: Moving statement.
@ 2013-06-10 21:52 Raphael S. Carvalho
2013-06-13 12:40 ` Serge E. Hallyn
0 siblings, 1 reply; 2+ messages in thread
From: Raphael S. Carvalho @ 2013-06-10 21:52 UTC (permalink / raw)
To: Eric W. Biederman, Andrew Morton, Serge E. Hallyn, Serge Hallyn,
Raphael S.Carvalho
Cc: linux-kernel, Raphael S. Carvalho
Moving statement to static initilization of init_pid_ns.
Signed-off-by: Raphael S. Carvalho <raphael.scarv@gmail.com>
---
kernel/pid.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/pid.c b/kernel/pid.c
index 0db3e79..c577d3c 100644
--- 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,
@@ -594,7 +595,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);
--
1.7.2.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] kernel/pid.c: Moving statement.
2013-06-10 21:52 [PATCH 1/1] kernel/pid.c: Moving statement Raphael S. Carvalho
@ 2013-06-13 12:40 ` Serge E. Hallyn
0 siblings, 0 replies; 2+ messages in thread
From: Serge E. Hallyn @ 2013-06-13 12:40 UTC (permalink / raw)
To: Raphael S. Carvalho
Cc: Eric W. Biederman, Andrew Morton, Serge E. Hallyn, Serge Hallyn,
linux-kernel
Quoting Raphael S. Carvalho (raphael.scarv@gmail.com):
> Moving statement to static initilization of init_pid_ns.
>
> Signed-off-by: Raphael S. Carvalho <raphael.scarv@gmail.com>
This seems innocuous enough.
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
> ---
> kernel/pid.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/kernel/pid.c b/kernel/pid.c
> index 0db3e79..c577d3c 100644
> --- 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,
> @@ -594,7 +595,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);
> --
> 1.7.2.5
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-13 17:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-10 21:52 [PATCH 1/1] kernel/pid.c: Moving statement Raphael S. Carvalho
2013-06-13 12:40 ` Serge E. Hallyn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®