Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3418054yba; Tue, 16 Apr 2019 10:54:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqyjC+Zj5j+gUNUSoAw678zRXc/61SIbLVUwmfdbEiaJnhJj8buKX9jiOwzowfm4vuqdrYLr X-Received: by 2002:a63:554b:: with SMTP id f11mr77666408pgm.77.1555437296258; Tue, 16 Apr 2019 10:54:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437296; cv=none; d=google.com; s=arc-20160816; b=aofvypdEfek4xZ1rw8FboZalifXJYAQOAPQtFSlIAK1AGO2U9JK1XOJ9saythOuUHt 3YdiFg8EyArsc/LxszZwxyfi1M5dbMceURhnpVnkhVOO9ccd1khym79FYvTDqpCO9SoP Gkdokt+2otZ7DPXTzwMlN1WgSiaMXrzbk0GLOotN/Bwoi5Vf0WKSyrXrmOWWCjjeA2iz RqIqp9M8+an1QUr9LKKvIFM/VbGqFmOS9t/7PrUUatEIMjcPiNg30Ag9+TiEitHkPDnv +ZYJ84dXUWAMOtn1565AeLzisUkeDHKlbB3YxlcC88jq+I2qQq9Oh0/EDYYP1TRYKeq+ mRJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=X/vyOa/YdPZrSnmoRcrYSG6u0hNbgEQHmZrwPDyH8Y0=; b=tCDAIC/GsCZ9WfVCV4Q/nQuMrE9MbORg+r6Yk2ObBZzdrF5nVs2MraLI9PJxMfV1w/ VjZfbz6kFUv4euFw7wr5CcdM61Y/tFzyZ0oXR3YQHnxzWrClgMYYShaFlTjnnTlUJVUh KrNH9GAMdqbTHW4z6O49oxpMxFgmEs7JeqTlGs78j9AGsk7TMMTH9e1ln1cRQJXcG38n wFiayYUM/+Cs1XxzHnuytbDuetZV9jDhuVtk1CiMjaeioO7QYA87C8wxVBkuh4CZUsuc Dk5EL2UiOsrRsthJ1dftM0CPvseJWEMxXODD5pmwj7kpinJE3OM80861h0gwoa6+GS12 VQtw== 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 j65si12955298plb.159.2019.04.16.10.54.40; Tue, 16 Apr 2019 10:54:56 -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 S1730453AbfDPRx5 (ORCPT + 99 others); Tue, 16 Apr 2019 13:53:57 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57610 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730279AbfDPRxq (ORCPT ); Tue, 16 Apr 2019 13:53:46 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hGSHA-0005Xe-Rm; Tue, 16 Apr 2019 17:53:44 +0000 From: Al Viro To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [RFC PATCH 32/62] procfs: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:53:10 +0100 Message-Id: <20190416175340.21068-32-viro@ZenIV.linux.org.uk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190416175340.21068-1-viro@ZenIV.linux.org.uk> References: <20190416174900.GT2217@ZenIV.linux.org.uk> <20190416175340.21068-1-viro@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Al Viro Signed-off-by: Al Viro --- fs/proc/inode.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/proc/inode.c b/fs/proc/inode.c index fc7e38def174..5f8d215b3fd0 100644 --- a/fs/proc/inode.c +++ b/fs/proc/inode.c @@ -72,17 +72,11 @@ static struct inode *proc_alloc_inode(struct super_block *sb) return &ei->vfs_inode; } -static void proc_i_callback(struct rcu_head *head) +static void proc_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); kmem_cache_free(proc_inode_cachep, PROC_I(inode)); } -static void proc_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, proc_i_callback); -} - static void init_once(void *foo) { struct proc_inode *ei = (struct proc_inode *) foo; @@ -123,7 +117,7 @@ static int proc_show_options(struct seq_file *seq, struct dentry *root) const struct super_operations proc_sops = { .alloc_inode = proc_alloc_inode, - .destroy_inode = proc_destroy_inode, + .free_inode = proc_free_inode, .drop_inode = generic_delete_inode, .evict_inode = proc_evict_inode, .statfs = simple_statfs, -- 2.11.0