* [PATCH] pid: kill pidhash_size in pidhash_init
@ 2017-07-18 14:47 Kefeng Wang
2017-07-18 14:52 ` Pasha Tatashin
0 siblings, 1 reply; 2+ messages in thread
From: Kefeng Wang @ 2017-07-18 14:47 UTC (permalink / raw)
To: Andrew Morton, linux-kernel; +Cc: Pavel Tatashin, Kefeng Wang
After commit 3d375d78593c ("mm: update callers to use HASH_ZERO flag"),
drop unused pidhash_size in pidhash_init().
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
---
kernel/pid.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/kernel/pid.c b/kernel/pid.c
index 731c4e5..c69c30d 100644
--- a/kernel/pid.c
+++ b/kernel/pid.c
@@ -575,13 +575,10 @@ struct pid *find_ge_pid(int nr, struct pid_namespace *ns)
*/
void __init pidhash_init(void)
{
- unsigned int pidhash_size;
-
pid_hash = alloc_large_system_hash("PID", sizeof(*pid_hash), 0, 18,
HASH_EARLY | HASH_SMALL | HASH_ZERO,
&pidhash_shift, NULL,
0, 4096);
- pidhash_size = 1U << pidhash_shift;
}
void __init pidmap_init(void)
--
1.8.3.1
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] pid: kill pidhash_size in pidhash_init
2017-07-18 14:47 [PATCH] pid: kill pidhash_size in pidhash_init Kefeng Wang
@ 2017-07-18 14:52 ` Pasha Tatashin
0 siblings, 0 replies; 2+ messages in thread
From: Pasha Tatashin @ 2017-07-18 14:52 UTC (permalink / raw)
To: Kefeng Wang, Andrew Morton, linux-kernel
Reviewed-by: Pavel Tatashin <Pasha.Tatashin@Oracle.com>
On 07/18/2017 10:47 AM, Kefeng Wang wrote:
> After commit 3d375d78593c ("mm: update callers to use HASH_ZERO flag"),
> drop unused pidhash_size in pidhash_init().
>
> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
> ---
> kernel/pid.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/kernel/pid.c b/kernel/pid.c
> index 731c4e5..c69c30d 100644
> --- a/kernel/pid.c
> +++ b/kernel/pid.c
> @@ -575,13 +575,10 @@ struct pid *find_ge_pid(int nr, struct pid_namespace *ns)
> */
> void __init pidhash_init(void)
> {
> - unsigned int pidhash_size;
> -
> pid_hash = alloc_large_system_hash("PID", sizeof(*pid_hash), 0, 18,
> HASH_EARLY | HASH_SMALL | HASH_ZERO,
> &pidhash_shift, NULL,
> 0, 4096);
> - pidhash_size = 1U << pidhash_shift;
> }
>
> void __init pidmap_init(void)
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-07-18 14:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-18 14:47 [PATCH] pid: kill pidhash_size in pidhash_init Kefeng Wang
2017-07-18 14:52 ` Pasha Tatashin
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®