Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3423725yba; Tue, 16 Apr 2019 11:01:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRXRquAVUy4wTE+fbRp1fjBkBnS0PwqeRE279Cfj/S/c1/JWXNkOGwVIT0mAClXKkZQMkj X-Received: by 2002:a17:902:7481:: with SMTP id h1mr84005922pll.206.1555437694271; Tue, 16 Apr 2019 11:01:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437694; cv=none; d=google.com; s=arc-20160816; b=r1ZnPx6pZNgaDntwOLC3LHq45No3/3t0xHjETz+bnuACQ7INBx1Fo2W49+QxmQDXk1 h667Lg+ctOKCs2pGthyRaszVPmr9GI6sACLCzUEJwODT7bk3OgV1sgKq6xAnZwz8EJqH XthVOSr7Um6jHavUviBJ9YtAbFcxIVbK2I1K0ELaFr/m6pTVET6qQ9L6GBO43pZThtSz qvp3L4RMcVy+kOrngOIeyj0epzVCj3/JW56QrkhZ49k1qd4T5aLgtjQw0wo91zGchfeX ZqsUXoMZwPuod5lVfJn7aofcJKZoStD2rcxYn+rTKJFL/X9rojud2xxegThEVcHUYvd3 D0Cg== 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=RKiEjB42VfA1m21S3ZOAHlqDmkgt9aAjcX940yvUPx0=; b=QoJZ3I5gocS3e+y3rZQNeJdJ3sjFbKILPD2nk52unmpKp8ia25kZ/7oPcLXRndkgM4 4RGfjFQdQg7dqaxL40/btTqyBt5lXMtV31MBz+AxB+rx/iwE2k5QrU4TbojuMz3BoaGr GJ0ckbDRTOO4Xu1QZ1WRdtUqKpNAzVoCPF1ZBu6VAV/oaz8/7QAXbD+5m4LkqK9vSrCp XlDwfZmYPzJ1Ros8Y6iTNxQaAxuNeCFD8MOUMtOjnpDIizX1NXX5iXCp/yYjlhaDsG4W rf1YP3sk1T6wdFq1JLaARzNoK3Rxz0x/vYxp+wQW/WOyFU3S66MAP/Mgv9YDu+ugNCbl /KLw== 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 a33si28523632pld.123.2019.04.16.11.01.15; Tue, 16 Apr 2019 11:01:34 -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 S1730868AbfDPR7Q (ORCPT + 99 others); Tue, 16 Apr 2019 13:59:16 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57538 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730229AbfDPRxo (ORCPT ); Tue, 16 Apr 2019 13:53:44 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hGSH8-0005Vg-Fs; Tue, 16 Apr 2019 17:53:42 +0000 From: Al Viro To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [RFC PATCH 14/62] efs: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:52:52 +0100 Message-Id: <20190416175340.21068-14-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/efs/super.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/efs/super.c b/fs/efs/super.c index 6ffb7ba1547a..867fc24dee20 100644 --- a/fs/efs/super.c +++ b/fs/efs/super.c @@ -74,17 +74,11 @@ static struct inode *efs_alloc_inode(struct super_block *sb) return &ei->vfs_inode; } -static void efs_i_callback(struct rcu_head *head) +static void efs_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); kmem_cache_free(efs_inode_cachep, INODE_INFO(inode)); } -static void efs_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, efs_i_callback); -} - static void init_once(void *foo) { struct efs_inode_info *ei = (struct efs_inode_info *) foo; @@ -122,7 +116,7 @@ static int efs_remount(struct super_block *sb, int *flags, char *data) static const struct super_operations efs_superblock_operations = { .alloc_inode = efs_alloc_inode, - .destroy_inode = efs_destroy_inode, + .free_inode = efs_free_inode, .statfs = efs_statfs, .remount_fs = efs_remount, }; -- 2.11.0