Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3422680yba; Tue, 16 Apr 2019 11:00:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqx5rKgFsuCB2XJVuEHM5fft4bV4+djq+XDm2N1aUlpKA8zWMGX7DhNrqRgA+TfCH8+LGozf X-Received: by 2002:aa7:8b4c:: with SMTP id i12mr77943191pfd.189.1555437634175; Tue, 16 Apr 2019 11:00:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437634; cv=none; d=google.com; s=arc-20160816; b=mOCJUzkDqw+a6uP/3C4ccN6Hdiq/yzGs6SM7H8E06p9lE2cMAH9wghPwPbwPgVeAON CN/A+a0aX59VxgBRSVaOFRuN60PR+WIijEtLS0og9xUk1TjEPsVCvtZ/aYhaFraaMJkX dPCO16gEMv4xGmbJ8PRO7++4r1rbXKI2I2q4h1lZS+D0+661AkeXBzZXZtckvMeqkL8J Zp0A04IhIwdFybrVRjLe9So7nwL4elndDqN9tjuVv7koO5ohSkwvgjrUxLwXv+HDs9ty PKWpWlDfqy0aHX1Of946LrwtYFxF671j/bKN69PNJy3vooKkqRoGYVU1kOVPcw6kYY4h R93Q== 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=EHxSeZR6PWLbpAv1FyGZiPQj9Ta9T4wuRcY2xvw07hw=; b=nBd4KlWB+mjcr282PwKA00thx4VuAPPILaWQTDsu/UrI1z6yYL5l1iQO3XWp+Daoa8 vy3rWIiO1OQ7H+LcVDX7oC0+swGajj70s5RvMMqJJ8rfLP+b41P7xVzgR6QoHqzecw6o KLdbGOGXh0ua2/f3/eXQHz/WGd3Gn+ahuH2qbFG6m8Oj1znepVwettdfjK2ADTNKHDjz +b7mkPZ4ILaWDSjFbKFEaVKmyOqKtWx3ck9BthmwoYPoTr1hSGh6rbcj+jJFxA4aKcEh cCIGf2trpJJvhKVaZXvFCjfapanVIJd+KHcdO50qoQvIPExnV7wBW1tPcWsd52XAk6Eo ddxA== 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 x3si37563021plo.274.2019.04.16.11.00.18; Tue, 16 Apr 2019 11:00: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 S1730791AbfDPR7a (ORCPT + 99 others); Tue, 16 Apr 2019 13:59:30 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57540 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730231AbfDPRxo (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-0005Vm-IP; 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 15/62] ext2: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:52:53 +0100 Message-Id: <20190416175340.21068-15-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/ext2/super.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/ext2/super.c b/fs/ext2/super.c index 0128010a0874..3988633789cb 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c @@ -192,17 +192,11 @@ static struct inode *ext2_alloc_inode(struct super_block *sb) return &ei->vfs_inode; } -static void ext2_i_callback(struct rcu_head *head) +static void ext2_free_in_core_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); kmem_cache_free(ext2_inode_cachep, EXT2_I(inode)); } -static void ext2_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, ext2_i_callback); -} - static void init_once(void *foo) { struct ext2_inode_info *ei = (struct ext2_inode_info *) foo; @@ -351,7 +345,7 @@ static const struct quotactl_ops ext2_quotactl_ops = { static const struct super_operations ext2_sops = { .alloc_inode = ext2_alloc_inode, - .destroy_inode = ext2_destroy_inode, + .free_inode = ext2_free_in_core_inode, .write_inode = ext2_write_inode, .evict_inode = ext2_evict_inode, .put_super = ext2_put_super, -- 2.11.0