Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3422885yba; Tue, 16 Apr 2019 11:00:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqz+Ubchz+0z8IwNGWN2G2q0RDK9BeDX0EH0qne4+Cs14bMCO1hFbEd9asKtl/+fbqmSKY5C X-Received: by 2002:a63:ed10:: with SMTP id d16mr77568843pgi.75.1555437646868; Tue, 16 Apr 2019 11:00:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437646; cv=none; d=google.com; s=arc-20160816; b=tVmTXYJuLWQsUEZwXDvDrRsV94/LYVivQR4ij/dHN/RZBmg1xlLFF49TbwXmEQZgtO lr4eEFHj9X0T8+qyJtgpqykJuAFY/0RmT9LToY3mZlz0fHptspRVjFHA3FvAteT0c2ya hF445uHG/FJDdKQFx/WEk/dvpEr7GlWOpCuWjRHQwl1MCayY+/rg4GTo8LbLGCd2wm3f Kb+GPDaSRpi8gLeISXxsuFcLL6y4ma/xlNDCB5zmA6ZfiyNejI1YiJBhcPeCcixBMdwu a9fxw1Cz1o8v/DGFVy4/FxE9EZPHnS+UihMNXkCLsq8PIJg6AUXJBBC+6FU4Qm923LdV liGA== 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=picqFZ7xnZA2Qz3gafyr40qLSMJ80vcX7u+sPMeFMeg=; b=Out+cWjBdx5mQ59i3sTmjigjMIEJ1R43ixMjESmh7F/m8PAvJBLcjzyRmCYvorwdAI SHuJq3/A8iGOCe6kmY5bAOD/cgtBOPZGXj2RislcTnmv3S2e307oNx9XUH+6ls8+er5d cjJ3U0+4JKvXSm6nvibytq0ci32RfD3Ucu/Xg+4s5kjK+biaRFhrfxDHDFcEj33g9M73 bm8RyjJauIv1+/JFxEwaCi2XEfDxdSEW0xexiUL66saCCURQuzZnJ7HX7g3/C8bVCE/Y /bi/eti6GpvDeGwjZgdIWGPRvscEQ/5NiWc9oMBYfFnMMs0kq75NgPlbzpcZROwK+Vbi v+1g== 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 az5si47167377plb.111.2019.04.16.11.00.30; Tue, 16 Apr 2019 11:00:46 -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 S1730911AbfDPR7o (ORCPT + 99 others); Tue, 16 Apr 2019 13:59:44 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57554 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730234AbfDPRxo (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-0005W5-Q7; 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 18/62] freevxfs: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:52:56 +0100 Message-Id: <20190416175340.21068-18-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/freevxfs/vxfs_super.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/fs/freevxfs/vxfs_super.c b/fs/freevxfs/vxfs_super.c index 48b24bb50d02..a89f68c3cbed 100644 --- a/fs/freevxfs/vxfs_super.c +++ b/fs/freevxfs/vxfs_super.c @@ -131,21 +131,14 @@ static struct inode *vxfs_alloc_inode(struct super_block *sb) return &vi->vfs_inode; } -static void vxfs_i_callback(struct rcu_head *head) +static void vxfs_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); - kmem_cache_free(vxfs_inode_cachep, VXFS_INO(inode)); } -static void vxfs_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, vxfs_i_callback); -} - static const struct super_operations vxfs_super_ops = { .alloc_inode = vxfs_alloc_inode, - .destroy_inode = vxfs_destroy_inode, + .free_inode = vxfs_free_inode, .evict_inode = vxfs_evict_inode, .put_super = vxfs_put_super, .statfs = vxfs_statfs, -- 2.11.0