Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3422613yba; Tue, 16 Apr 2019 11:00:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqy8m8Ugvmf+0+pW55xzol9RXnR1U6PlMt+90NK87oCJ1Oy4XDq4/QWbYge8bDBAFpzPifqm X-Received: by 2002:a17:902:b10c:: with SMTP id q12mr83432197plr.254.1555437629731; Tue, 16 Apr 2019 11:00:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437629; cv=none; d=google.com; s=arc-20160816; b=SHPvTsvgcHq+IZYYf5lqwUnbhdq6VGTLMoLvUcic1JK3EVe6xy2fyEZwcrNhmUY/c3 B9WqrhMV6NbOtIyNoThfB1sodFP0RkX4ci/Xup718iZWickaZVW6+35s2ZfcUHkcWfsR MvRoh6MG+BBPiypQfhCGUVNpA60SCnO2BsBUpKcZB3BpUNEAFWIWxoLvMjn/y1eWlcZy 5+V/c5QtEvaXzWD/P9Eb9VOniwz9fAhRLJRcYQtN+yk2MxjIx6xJR2D1NvWnVcdRsC1Q r/YtCIcTaM4wWdx25T04onGkJMA1o95PwtofJbOe+ev+CTliL1JIJHjps/RL4WBq8Jpu dkSg== 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=CVBPMXj+ZyeAg6EClSbLeRBubbgkKksT4IWNEWZ6OAQ=; b=E4MOjnlGL0J3EvwLWag2CBv3sH3R7m6Jx1Yh+jvzO/BSaq0lYuJJaRdJ5Z25W06Szw xLjZOgPX/ruibK842+wJB2+hHa3jLvPctOOjBYIMGrxlDrYGUciLcAeWCMgM8hk4HQgN ObqQnPbnXHWwSJgXiuPUuPkvaFFqgNJhJ26PX2Wlo3qzyttVCz1XYaItDqmbEuLLuIsJ nEFzh96LhZSPBDPnWZvxwCvqJaR1tuPPsVAwh4qc0cK0JzKGsQhVLfIKd49p6ReaIMvO 2RNjfB5GgfBgKGXvMdqCExcwcagx5YKO1hk0WdqeF2B2BDNsJDc93C3AV1jIA4KuEYqP 2xug== 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 j24si44487580pll.286.2019.04.16.11.00.13; Tue, 16 Apr 2019 11:00:29 -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 S1730695AbfDPR6A (ORCPT + 99 others); Tue, 16 Apr 2019 13:58:00 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57598 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730272AbfDPRxq (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 1hGSHA-0005XH-H9; 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 29/62] dlmfs: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:53:07 +0100 Message-Id: <20190416175340.21068-29-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/ocfs2/dlmfs/dlmfs.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/ocfs2/dlmfs/dlmfs.c b/fs/ocfs2/dlmfs/dlmfs.c index 8decbe95dcec..98885181e1fe 100644 --- a/fs/ocfs2/dlmfs/dlmfs.c +++ b/fs/ocfs2/dlmfs/dlmfs.c @@ -349,17 +349,11 @@ static struct inode *dlmfs_alloc_inode(struct super_block *sb) return &ip->ip_vfs_inode; } -static void dlmfs_i_callback(struct rcu_head *head) +static void dlmfs_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); kmem_cache_free(dlmfs_inode_cache, DLMFS_I(inode)); } -static void dlmfs_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, dlmfs_i_callback); -} - static void dlmfs_evict_inode(struct inode *inode) { int status; @@ -605,7 +599,7 @@ static const struct inode_operations dlmfs_root_inode_operations = { static const struct super_operations dlmfs_ops = { .statfs = simple_statfs, .alloc_inode = dlmfs_alloc_inode, - .destroy_inode = dlmfs_destroy_inode, + .free_inode = dlmfs_free_inode, .evict_inode = dlmfs_evict_inode, .drop_inode = generic_delete_inode, }; -- 2.11.0