From patchwork Tue Jul 18 14:47:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 108134 Delivered-To: patch@linaro.org Received: by 10.182.45.195 with SMTP id p3csp6002846obm; Tue, 18 Jul 2017 07:50:12 -0700 (PDT) X-Received: by 10.98.28.71 with SMTP id c68mr2182931pfc.116.1500389412740; Tue, 18 Jul 2017 07:50:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500389412; cv=none; d=google.com; s=arc-20160816; b=kVLl2kpVBT1/SiqrxvzzJzayCI+Ay1QCQFLxEEJAojPpOtZwUIYJ4gzlpTqtoOijzJ oSxA4wm784/8FW3wHE9XAu5QyQGIVdyNES1xLUprAr74go09QBtHK6GvSOXBvC8MRW6p qDy6iatEzs9ojW/phXD+xsRqKSvRqg2TZz8sqVH7ntEBiPZvqQm14B2QFeVwLyeUOTtK ak8Jkx1CwjjcWc7R/O/E+RFcNapBg/tOa6ph7uzVYviHWEPWQurwuYgzVOt1NDNQKAdp /o39H93oTnIMt+UqG+G8SvE/mEEVdFFcnxM/PWT5UfoBglRNSEWplKDHTdatie1LpHbA kCNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=UPYf4Rbq+tWb67GIK/ccMVLVXD6JbniI+INQwcj5qNY=; b=ujsKkDbZLW1LcOkpZs/WGkw/KOWF8ALtqMstbarRG8JlrBlLFiWM3u2mmRUwzNtkzd RUftZYYG87lkv/W4jZSOxLraMr8Go90FzzXm90i66p/KI6ZhxwU9ZUoKAtui6BcicnKl Z1M6/UPkS9gbCGWlrIbyTg69BcTqA5aXcaBqVCQXZ5rOpWJIRuI8AIXxz4LC07WaZ2o5 cZpuf8FgMnWZIUjihHtv6DEFnoJX8tZE69BYaSQYR+ZipXY1kNo0GfEz8aq5+xHmqgzP 2eSvD+KBWt7GDSkiwQ2y6zJHpOGQ4iEqH1cWUSVYV8U9yYi/VD7NcVps88byuAIx6mUy 6ZMA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m11si1910350pla.525.2017.07.18.07.50.12; Tue, 18 Jul 2017 07:50:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751500AbdGROuJ (ORCPT + 25 others); Tue, 18 Jul 2017 10:50:09 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:9372 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751402AbdGROuI (ORCPT ); Tue, 18 Jul 2017 10:50:08 -0400 Received: from 172.30.72.53 (EHLO DGGEML401-HUB.china.huawei.com) ([172.30.72.53]) by dggrg03-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id ARJ57480; Tue, 18 Jul 2017 22:49:57 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEML401-HUB.china.huawei.com (10.3.17.32) with Microsoft SMTP Server id 14.3.301.0; Tue, 18 Jul 2017 22:49:49 +0800 From: Kefeng Wang To: Andrew Morton , CC: Pavel Tatashin , Kefeng Wang Subject: [PATCH] pid: kill pidhash_size in pidhash_init Date: Tue, 18 Jul 2017 22:47:47 +0800 Message-ID: <1500389267-49222-1-git-send-email-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020203.596E2015.01BC, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 52f417823769e116b895526086163fbc Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After commit 3d375d78593c ("mm: update callers to use HASH_ZERO flag"), drop unused pidhash_size in pidhash_init(). Signed-off-by: Kefeng Wang --- kernel/pid.c | 3 --- 1 file changed, 3 deletions(-) -- 1.8.3.1 Reviewed-by: Pavel Tatashin 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)