Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3418601yba; Tue, 16 Apr 2019 10:55:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYt4QMbpn45IhVsj4LNnNtl8q4NqigPWROmr6/PRFcLjc/YLKBHMQcVmOcGOm/aoqV6ayI X-Received: by 2002:a17:902:7c01:: with SMTP id x1mr57888033pll.299.1555437341369; Tue, 16 Apr 2019 10:55:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437341; cv=none; d=google.com; s=arc-20160816; b=pS4VHEWJIb4+8ngSzLSXwEa/GDEF7E7NIK2yj9bpUd+yoZkl3KKGcRs1P4gVoXsuWM pmC3t2DVeGUYQmQTdIuSVr9v10Hj4teZp0xLLIwnBs3Ydl+C6zRxqVMIuANJ572v0WRX XLrYPeY8jbIaTxkMhVTze6IywxQothdsQgr3Bj8R6DflZDFYNngJalVNlZE6t7cErWvL +eaCUr32SJpSsuXYHQdzFce/WI+q/crwNAXatb7lVIHyNskBCWUryjEH74kK5CNDqNWs Qm5/BcqRRQ614JF9pfsP7YipSif79SKtMzD+7cgSfndT32WO1D9aHVNGqdCsts/W4YsJ DMew== 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=2iCbp/P7uz5BnQb36xND+aJG8fl7SHTD1ZiZaTHpG2c=; b=TH/FvDqtb5DKCivNQAfFiMG+0URGrfD9ZhglEmy5UUdpbbhP5vcjIvPFy4BbYY7Clg mGHYwMdPG9t1qFXNqgrIrXB0prwYvSLpV4RuHnp35x0/LkUpCWS7k/DQ4GguyM45rvYS URQLfLybdNcvEsRK7IBZofar2sA0cTTKpFehsN1tLJxxiy64fIi5JKpVTpIWQhrMSLTl LCAC6quW+m6tpoxFIXsXVevxfwXy7B5Y7pJnmkvd3aHOxqVk0LPzzcF9SdAZZ7yiHW5X tMK6k1dZYZRNp/TjsqISubolHCy3GYaFzJdZM2mgHRTMqHWqHzxtlRfa/hdzv6siPXNt 1/DA== 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 136si31295561pgb.552.2019.04.16.10.55.25; Tue, 16 Apr 2019 10:55:41 -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 S1730479AbfDPRyB (ORCPT + 99 others); Tue, 16 Apr 2019 13:54:01 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57638 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730295AbfDPRxr (ORCPT ); Tue, 16 Apr 2019 13:53:47 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hGSHB-0005YM-TP; 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 39/62] udf: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:53:17 +0100 Message-Id: <20190416175340.21068-39-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/udf/super.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/udf/super.c b/fs/udf/super.c index ffd8038ff728..f64691f2168a 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c @@ -161,17 +161,11 @@ static struct inode *udf_alloc_inode(struct super_block *sb) return &ei->vfs_inode; } -static void udf_i_callback(struct rcu_head *head) +static void udf_free_in_core_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); kmem_cache_free(udf_inode_cachep, UDF_I(inode)); } -static void udf_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, udf_i_callback); -} - static void init_once(void *foo) { struct udf_inode_info *ei = (struct udf_inode_info *)foo; @@ -206,7 +200,7 @@ static void destroy_inodecache(void) /* Superblock operations */ static const struct super_operations udf_sb_ops = { .alloc_inode = udf_alloc_inode, - .destroy_inode = udf_destroy_inode, + .free_inode = udf_free_in_core_inode, .write_inode = udf_write_inode, .evict_inode = udf_evict_inode, .put_super = udf_put_super, -- 2.11.0