Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1690347 > unrolled thread

[PATCH] pid: kill pidhash_size in pidhash_init

Started byKefeng Wang <wangkefeng.wang@huawei.com>
First post2017-07-18 17:00 +0200
Last post2017-07-18 17:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] pid: kill pidhash_size in pidhash_init Kefeng Wang <wangkefeng.wang@huawei.com> - 2017-07-18 17:00 +0200

#1690347 — [PATCH] pid: kill pidhash_size in pidhash_init

FromKefeng Wang <wangkefeng.wang@huawei.com>
Date2017-07-18 17:00 +0200
Subject[PATCH] pid: kill pidhash_size in pidhash_init
Message-ID<u4C8G-3FU-7@gated-at.bofh.it>
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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web