Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3420546yba; Tue, 16 Apr 2019 10:58:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqxHwNr99GkiAhZY6qyiZaJ8T2uRC5XuepOYT9QhisAK+VHcXIQGEBOmKKBCGqgxMt75vJnD X-Received: by 2002:aa7:83ce:: with SMTP id j14mr55332423pfn.57.1555437483139; Tue, 16 Apr 2019 10:58:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437483; cv=none; d=google.com; s=arc-20160816; b=Ma0YPpaC73/+9X+f84GQoXK5/S/hFRiqDGvncKHgSKe5vdlL7FfBv9Qn1FdMBrmZXw c7HF492bGUQ3LyQ62ONfdKJnJnh0dxWZ0opmRaemPwT6LC855p2VX+qrcEKEFAUTpFgn O4TZKdc3Is1W7UxOv4oZtxQoyOBmHgoCaxn+PyxJgnZcvUPWa3J8A4giajxO7+kmgDDt SQ7AzdZ/Al9gy7HEJST7AZcwcpziSs5suO7JNPstej2gtW6b/J/bwDVwF83LxE9WWeNo T5dm6bfyCBU9Ufvf5vmnbXCLy8ScIVRAV7yQ9alisUGEQrKNtX8Jq4+qnQxwaOvdf79a hNFg== 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=liGQ22tDonwcbBhqx9stUgtzD0ZSFnXNWMX0HEfk3uU=; b=ZrGWd0Jxvki56l+aGEAWUTJoXctWuVjmSClnihHitb6OL9ddxJavtgaKHwr3KBMEPK IngipaDqPH0g4MCLF1qz/Mr0k3WnjWmvvgJlcKAale8biQXUodzdrNPoi8XCJOjkdjKL kO+isIt60rWwm65wxfqtuDjLihL93YdLVfojlhvySj3MRpfr8+ocwUZDxd4r9FiKU0Dn 7IdQJQb115/7xA/vEd8e/gIwAz7W/kxmVe10nkYkUtQKULPClselYUUisE/IW0E1/r3b pF9sqJl3l7tIq2IP6DVxgx/7TTXZ6puSBD656eodIb27KGCILfvudOzTlAM5abx6k5C0 iWsQ== 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 x4si17887170plv.329.2019.04.16.10.57.44; Tue, 16 Apr 2019 10:58:03 -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 S1730735AbfDPR4X (ORCPT + 99 others); Tue, 16 Apr 2019 13:56:23 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57670 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730330AbfDPRxs (ORCPT ); Tue, 16 Apr 2019 13:53:48 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hGSHD-0005ZB-4U; Tue, 16 Apr 2019 17:53:47 +0000 From: Al Viro To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [RFC PATCH 47/62] securityfs: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:53:25 +0100 Message-Id: <20190416175340.21068-47-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 --- security/inode.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/security/inode.c b/security/inode.c index 421dd72b5876..aacc4dabba7d 100644 --- a/security/inode.c +++ b/security/inode.c @@ -27,22 +27,16 @@ static struct vfsmount *mount; static int mount_count; -static void securityfs_i_callback(struct rcu_head *head) +static void securityfs_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); if (S_ISLNK(inode->i_mode)) kfree(inode->i_link); free_inode_nonrcu(inode); } -static void securityfs_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, securityfs_i_callback); -} - static const struct super_operations securityfs_super_operations = { .statfs = simple_statfs, - .destroy_inode = securityfs_destroy_inode, + .free_inode = securityfs_free_inode, }; static int fill_super(struct super_block *sb, void *data, int silent) -- 2.11.0