Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3421205yba; Tue, 16 Apr 2019 10:58:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwSeIEcsyomEigqndbJDRYl8kg3qqW3rNg1gcfpyxfS5N9ssD1sjI8xTLo9L4pCJLUNjePv X-Received: by 2002:a62:1c13:: with SMTP id c19mr83535115pfc.11.1555437532088; Tue, 16 Apr 2019 10:58:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437532; cv=none; d=google.com; s=arc-20160816; b=xEzwUIZmVJkIS5ddxKiESOsgWxLA61LvxI+CgWeaX2w+Yd26sbAVhpGycwZlA2ajQQ 6n2/LfjsjpVPmw8gp/lRdZe/S+PiFB2qhNDDRR2KmOakc42zMwJyO8osjzRkeJJaE8HH TyVoJBxRoXL+EgLLMBqe+1gfK22CkhIa5DmxOSxMBvKDn0JfFoURZdWsZd00s0iRKakm mT2pFuHFXNSLj/LCsJcDDoLg1fJobVzOiztBQ0lSU8HTwKL9go//q725EtYIErELbOdo mOiIa3R5MwOlgDZz8VIrlF/YzsFFQnxlBi0cdfd1D98I7vshmPcfcGiBtlzY2zVEm3b4 xUfQ== 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=EmBOUdR8+WZ2bxeE01GdBesTfilF5+6YC6Jxv+5AUY8=; b=DY6VtDUZcKhq8/FqvwLs4woTNPkxHdmwEuC3UmWDLNVpsXV/80fvCtTG/5WrbpNYaY M6PkBw5rZ+gwnVc23rMb1Aw/JxKIFWRnQzCkz4lHHDE5xpnnNAhgLKLao2vOx+GNWBUf NdoTaS8uJHig9dxUP9ANiJegy9yLUFBez0FL9m/kiqjUoA2A7NC4EES7buy8W3G54o02 XfoCMlJH5n3zGnm3PWI/ickeJV0w1XZKJZCM/PmwAdZm3AZFxdoMV1PnlI6iNZ6ipMUZ rQdV74XhFIJiBU3ip9XomH+aK+d01tuPUSMmz8zCoq7e1LBWlVK+O4iVjLSQhe++h3F4 SCDg== 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 33si31741035plt.161.2019.04.16.10.58.36; Tue, 16 Apr 2019 10:58:52 -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 S1730798AbfDPR5W (ORCPT + 99 others); Tue, 16 Apr 2019 13:57:22 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57622 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730285AbfDPRxq (ORCPT ); Tue, 16 Apr 2019 13:53:46 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hGSHB-0005Xx-BM; Tue, 16 Apr 2019 17:53:45 +0000 From: Al Viro To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [RFC PATCH 35/62] reiserfs: convert to ->free_inode() Date: Tue, 16 Apr 2019 18:53:13 +0100 Message-Id: <20190416175340.21068-35-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/reiserfs/super.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/reiserfs/super.c b/fs/reiserfs/super.c index 1fc934d24459..ab028ea0e561 100644 --- a/fs/reiserfs/super.c +++ b/fs/reiserfs/super.c @@ -650,17 +650,11 @@ static struct inode *reiserfs_alloc_inode(struct super_block *sb) return &ei->vfs_inode; } -static void reiserfs_i_callback(struct rcu_head *head) +static void reiserfs_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); kmem_cache_free(reiserfs_inode_cachep, REISERFS_I(inode)); } -static void reiserfs_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, reiserfs_i_callback); -} - static void init_once(void *foo) { struct reiserfs_inode_info *ei = (struct reiserfs_inode_info *)foo; @@ -815,7 +809,7 @@ static struct dquot **reiserfs_get_dquots(struct inode *inode) static const struct super_operations reiserfs_sops = { .alloc_inode = reiserfs_alloc_inode, - .destroy_inode = reiserfs_destroy_inode, + .free_inode = reiserfs_free_inode, .write_inode = reiserfs_write_inode, .dirty_inode = reiserfs_dirty_inode, .evict_inode = reiserfs_evict_inode, -- 2.11.0