mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pasha Tatashin <pasha.tatashin@oracle.com>
To: Kefeng Wang <wangkefeng.wang@huawei.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] pid: kill pidhash_size in pidhash_init
Date: Tue, 18 Jul 2017 10:52:33 -0400	[thread overview]
Message-ID: <20702e4f-10c1-ae91-0c0d-572516b92349@oracle.com> (raw)
In-Reply-To: <1500389267-49222-1-git-send-email-wangkefeng.wang@huawei.com>

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)
> 

      reply	other threads:[~2017-07-18 14:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-18 14:47 Kefeng Wang
2017-07-18 14:52 ` Pasha Tatashin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20702e4f-10c1-ae91-0c0d-572516b92349@oracle.com \
    --to=pasha.tatashin@oracle.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=wangkefeng.wang@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®