Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3422852yba; Tue, 16 Apr 2019 11:00:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqygrCUzbA4ke+03ftujsNT79usxYg9M60bQv3m6LTr5v4VW9scM1Ukc8LHiHlOOS2UGGW4C X-Received: by 2002:a65:424a:: with SMTP id d10mr331743pgq.335.1555437644743; Tue, 16 Apr 2019 11:00:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437644; cv=none; d=google.com; s=arc-20160816; b=WAW3BYnyS1CsbGgPwvp23ZiiRCaWQy11i1r9OzYO1KJqmV/dtlkIj5Viz++xAY2N0x ooIM8PBJidxq+TYVhjzjhUPV34d4JCanIVrMvUTV3LAglN28D/oGSxGlmERzY5DF4bxX tVhjpMn/tUGhwt+gf2usHiJkVFenAFQGdzsGCF5HcdONv1X22MfXEd/xl11grf+Mvr14 /m5ORCrro95DDWLxo/BZMXC9CFg9PkIxEB51zSsGlKBbbLLdLyCBYNIv0hZYB6ScEu9K eC9A4CH1WcuHiBS87ClpHp2110OXCG3OcdZIs7jjqQMQzBiboy4bvx8u2NyLZwNXprgG jxog== 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=7Mp/KC/MDmgBT4U71TxLaG9dOQ9dtd+IN1JRcssd/zU=; b=RU8FBmvlnh9PNsdvVpRjqHTtlNzzUWfPy5o3hVlWZ44P2UXjDQZCsHJN4H2vDo/d2R gHX4CtoqKBgho1rfE+iVwbv77JPxr3ZhR6cblaMWrJSGNcPF4GoD6ektfoTmvYaHJtIq 1a0on/+9U1VWOhdL9ekT7073gfA6H/I8gZtgiT/rypS/eOOh8DOhyb3NIQefZnziQ/k3 N5JK8S0y6NGPDGVSNvaSaO8bpA6gQqjAJBaY1UCDwhNBOz4zrx7Kq2fljv5pIIG5kQ49 NQ6MJePeXY/PbW+/YtB0uKrmP9p1mP0VJDcdjrw7+d7nmnNI5M20Ce+6+98pGQ1FpWcN Ph+A== 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 c7si37460971plo.121.2019.04.16.11.00.28; Tue, 16 Apr 2019 11:00:44 -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 S1730490AbfDPR6Y (ORCPT + 99 others); Tue, 16 Apr 2019 13:58:24 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57580 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730260AbfDPRxp (ORCPT ); Tue, 16 Apr 2019 13:53:45 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hGSHA-0005Wq-0g; 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 25/62] jffs2: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:53:03 +0100 Message-Id: <20190416175340.21068-25-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/jffs2/super.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/jffs2/super.c b/fs/jffs2/super.c index 05d892c79339..af4aa6599473 100644 --- a/fs/jffs2/super.c +++ b/fs/jffs2/super.c @@ -44,20 +44,14 @@ static struct inode *jffs2_alloc_inode(struct super_block *sb) return &f->vfs_inode; } -static void jffs2_i_callback(struct rcu_head *head) +static void jffs2_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); kfree(f->target); kmem_cache_free(jffs2_inode_cachep, f); } -static void jffs2_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, jffs2_i_callback); -} - static void jffs2_i_init_once(void *foo) { struct jffs2_inode_info *f = foo; @@ -258,7 +252,7 @@ static int jffs2_remount_fs(struct super_block *sb, int *flags, char *data) static const struct super_operations jffs2_super_operations = { .alloc_inode = jffs2_alloc_inode, - .destroy_inode =jffs2_destroy_inode, + .free_inode = jffs2_free_inode, .put_super = jffs2_put_super, .statfs = jffs2_statfs, .remount_fs = jffs2_remount_fs, -- 2.11.0