Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3421499yba; Tue, 16 Apr 2019 10:59:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPBcExN5TUi8BPtgY1ze3XPox7xDyeHDvD5jcgJRYMhPkJUyT7nUQznwr9eDT6mfuQwrk1 X-Received: by 2002:a63:481:: with SMTP id 123mr79505133pge.167.1555437553220; Tue, 16 Apr 2019 10:59:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437553; cv=none; d=google.com; s=arc-20160816; b=RV2Efj46VrZ570yUHWvRv+3ObT5s3Gf6mOnnDZLIsSZTnzsLeqWGksUj9BZ2TBZzhj JkqUEoM/zi5hrAp0GXWk/J3feuUCf89yGB/sNDAi6e+VXL/LVUD5GaIkGodflYaEEolc O8j+bPxHSIhUpUUkmM2ELHttoAheLzdQtvxpaJAkhmGzHBcyY4lPySnZLgqlHsqpxf7S GnmrKW+eJTIBou98vFdfQhOyxK1Bkw3RrR23pv6zJbWvmCfhGHLNkPiO6FKunfpV/ftw 3N9A5fH77IOPNrGw7pV8//JKVNh5Pz2VZfcjoYWditwvFQT/HWtxtzFuhJOi+TLCdFG2 t6Ew== 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=xDTFUCdQ0sN8Q//DNm60bJalEf6OreS7dqkEDj6zUA8=; b=sKHT2VAegkKvauR3+kwXLAfifiUpwYh8SMH59RXiVHfmmt8YA5NvtihNoWYOdYYZKv +L4UUiHKu0GLZ92A14jyY2hqa2Zm5QfgHGbVel9qzIjTU1hZuGipb3cPQqsJeNfD2Jx3 VaA7Tk7UyrJBOUJNEdizbpFsqsu3yjTDPAw4c99UDIkNCdDIqjtddfhJAn0v1W8qfWO8 FxxasryjpMYY4OfCDDKhdICTOl+wplPG/GBbA6trmmRGLvC0E7ZZuhSc1H2S6Bd/jMmn 83nfEAdbW3ykxKtE4QNsalNZm2MAFkDQXUjfHl/o/T8oz6A01u1YKdfAasEXkczlRj15 TRaQ== 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 q23si48083235pgk.140.2019.04.16.10.58.57; Tue, 16 Apr 2019 10:59:13 -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 S1730721AbfDPR4R (ORCPT + 99 others); Tue, 16 Apr 2019 13:56:17 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57666 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730324AbfDPRxs (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 1hGSHC-0005Z5-VY; 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 46/62] apparmor: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:53:24 +0100 Message-Id: <20190416175340.21068-46-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/apparmor/apparmorfs.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/security/apparmor/apparmorfs.c b/security/apparmor/apparmorfs.c index b9298d2e8165..9ab5613fe07c 100644 --- a/security/apparmor/apparmorfs.c +++ b/security/apparmor/apparmorfs.c @@ -123,22 +123,16 @@ static int aafs_show_path(struct seq_file *seq, struct dentry *dentry) return 0; } -static void aafs_i_callback(struct rcu_head *head) +static void aafs_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 aafs_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, aafs_i_callback); -} - static const struct super_operations aafs_super_ops = { .statfs = simple_statfs, - .destroy_inode = aafs_destroy_inode, + .free_inode = aafs_free_inode, .show_path = aafs_show_path, }; -- 2.11.0