From patchwork Mon Nov 20 15:05:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Dobriyan X-Patchwork-Id: 10066685 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A6C80602B7 for ; Mon, 20 Nov 2017 15:06:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 97C5C2921F for ; Mon, 20 Nov 2017 15:06:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8B69D2928D; Mon, 20 Nov 2017 15:06:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15EAC2921F for ; Mon, 20 Nov 2017 15:06:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751274AbdKTPF7 (ORCPT ); Mon, 20 Nov 2017 10:05:59 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:43469 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751170AbdKTPF7 (ORCPT ); Mon, 20 Nov 2017 10:05:59 -0500 Received: by mail-wr0-f195.google.com with SMTP id u40so8334838wrf.10 for ; Mon, 20 Nov 2017 07:05:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=KLQHYYG2VXihULiuGPMBuCP1iabqrsnsqzVmewhnzLg=; b=b5jEh7kF1jXAUEkROnEaOjXHxCCKXOE8semLfH9C2Ifbbt8ePyKa7BJgSKM7qu1NiS vqWMWWJafi6p3mghT/h6jFsEsl5jH/j7eJJa3qf8xIs/GhXOU9CiNL7x3POqN5IuXzIK 2MuIfjdr7+fB2eWYC/z+puGPNDhiSekvb1twPYgg4QDiHQHUOaPBrScz3JFSVyhceAv4 euibp2daS0IEApkf/PdS2sao68wT0LSaHKUN419fLiLswrJKiKy37scFuoceFp/WWVW5 CKGI6RWdOkp+YaOlPVp+yFLYw2y7/CjP5zzMZOuQ1fHfpmPtkT5rFSga4HVdSdMP9M4X 51KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=KLQHYYG2VXihULiuGPMBuCP1iabqrsnsqzVmewhnzLg=; b=mh03SPT32ueHw4A+aeXHb1KZAakrc9B78RNYy5bnFcmqaJOJndux/L1yfARn/gSimr F+SpsZ1ITrpnbbKv6FGnikoUJcUGAHwi1TP+0/NGaZfPb7UsCClo6McCt1MZeCFwLg2R 1XtZLwQSv1QwWDasGat/BCITCtRvOCgDkxuHbBDKsDh+dJP/18XwxFr8Qu5Q7VRIMeWB ueRugSEdhPKtrWZj4s2NefhaOO3BmOeedh93Bln4WSPnVFNdcP+zg2IqzcfYSw8q+t8S 9qipo0P6tqV4qvTqDiXQ2QjF15p189Le0eKhpc7GfSculsxKV9JgdHQqxzV1uw1GqaOH vk2A== X-Gm-Message-State: AJaThX51jAL2plyClbBPuV+oEbZW480720g/R6iLd8v84M2U/JpWfSc9 EOVMSkMAPNraVCdfR/LX1Ewz X-Google-Smtp-Source: AGs4zMbGn/uwv1Oqw2x/tFkDq5xiIPJm6KRY4BLmZ0thA4KhklkEPpyTL/2UA+uATZVIk1fr6mJ0Lg== X-Received: by 10.223.128.162 with SMTP id 31mr11938615wrl.258.1511190358180; Mon, 20 Nov 2017 07:05:58 -0800 (PST) Received: from avx2 (nat4-minsk-pool-46-53-177-92.telecom.by. [46.53.177.92]) by smtp.gmail.com with ESMTPSA id o22sm26081863wrb.40.2017.11.20.07.05.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Nov 2017 07:05:54 -0800 (PST) Date: Mon, 20 Nov 2017 18:05:52 +0300 From: Alexey Dobriyan To: viro@zeniv.linux.org.uk Cc: linux-fsdevel@vger.kernel.org Subject: [PATCH 2/2] dcache: delete unused d_hash_mask Message-ID: <20171120150552.GB5832@avx2> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Alexey Dobriyan --- fs/dcache.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- a/fs/dcache.c +++ b/fs/dcache.c @@ -104,7 +104,6 @@ EXPORT_SYMBOL(slash_name); * information, yet avoid using a prime hash-size or similar. */ -static unsigned int d_hash_mask __read_mostly; static unsigned int d_hash_shift __read_mostly; static struct hlist_bl_head *dentry_hashtable __read_mostly; @@ -3589,7 +3588,7 @@ static void __init dcache_init_early(void) 13, HASH_EARLY | HASH_ZERO, &d_hash_shift, - &d_hash_mask, + NULL, 0, 0); d_hash_shift = 32 - d_hash_shift; @@ -3616,7 +3615,7 @@ static void __init dcache_init(void) 13, HASH_ZERO, &d_hash_shift, - &d_hash_mask, + NULL, 0, 0); d_hash_shift = 32 - d_hash_shift;