+ pid-kill-pidhash_size-in-pidhash_init.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: pid: kill pidhash_size in pidhash_init()
has been added to the -mm tree.  Its filename is
     pid-kill-pidhash_size-in-pidhash_init.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/pid-kill-pidhash_size-in-pidhash_init.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/pid-kill-pidhash_size-in-pidhash_init.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Kefeng Wang <wangkefeng.wang@xxxxxxxxxx>
Subject: pid: kill pidhash_size in pidhash_init()

After 3d375d78593c ("mm: update callers to use HASH_ZERO flag"), drop
unused pidhash_size in pidhash_init().

Link: http://lkml.kernel.org/r/1500389267-49222-1-git-send-email-wangkefeng.wang@xxxxxxxxxx
Signed-off-by: Kefeng Wang <wangkefeng.wang@xxxxxxxxxx>
Reviewed-by: Pavel Tatashin <Pasha.Tatashin@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 kernel/pid.c |    3 ---
 1 file changed, 3 deletions(-)

diff -puN kernel/pid.c~pid-kill-pidhash_size-in-pidhash_init kernel/pid.c
--- a/kernel/pid.c~pid-kill-pidhash_size-in-pidhash_init
+++ a/kernel/pid.c
@@ -575,13 +575,10 @@ struct pid *find_ge_pid(int nr, struct p
  */
 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)
_

Patches currently in -mm which might be from wangkefeng.wang@xxxxxxxxxx are

pid-kill-pidhash_size-in-pidhash_init.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux