Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3423032yba; Tue, 16 Apr 2019 11:00:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxrI5J8kwA3BzekWgO0YJb9083e6RPJmn9G8/ohbSWB8IZDUQZJ7dHbysYiG5dId50vxwVD X-Received: by 2002:aa7:818a:: with SMTP id g10mr81653267pfi.178.1555437653347; Tue, 16 Apr 2019 11:00:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437653; cv=none; d=google.com; s=arc-20160816; b=Ss6tUf904iNfANsrM1/6IM8WJ0gYLpy652NQy7Ai3SWNM/CVATyIF6Wf68Dtbx4EcB P5+LVtWBIWt1Kl4r+76Cppa04huttUOoPBetBRxW5c8qbMxiruYhUHZaH0SaXj38IBFM sqPfHiSzQ2Kgndmt2kBKdiYOiilEVYgcb5gkavSildDLcYXjQE5iKo8Qrl2YERKo7gdK 6ivJZIkzd0kFTszZOdhDtjN3xE7dVmy81hqh6CT7PlQsvsLBLjK7V+8mX/Vr0t2AGTEc Mv1O8F3Bc7aW0euMFF2iVoGQwEhpFwaNb4tiYbvPx/Zk6Y6zRjI9ZrKihVNW7+pkAAu5 kn+g== 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=pEkIinMCNUpgV8eFrwU/M3i5kYBd/XfdJa3g9fbnJ8s=; b=xs0W5vkyjrbSRGJKlak1HH6RfXfyF7pLobiniLzppILH/hntdi49w1sC6exFQ7aajO NWc40VL1eTFyuvPrzVHHYXualCvucP4eBSTTVNRNZRdH4cvEGpMM2wNFsy0X6TPdEU/L rKWV99CtEh8DlFfDjTJertTJV5JcJVxUanN/9ljcyhDd8kaLfS/MGI7VkAQtf3iAlvrC 7hpNRZHFEMQurexzRhZG35LlCJlpbZU2L4+Cw3Qm/liqKtdvk0otMw86+FKJ6pcwO5va HzPHdGf90c88NzSkUjNvX0lyuhA4eCFEwkRQSdFZGYhjxvIB8O1rqPTqdIjag4jQ4+e2 x6Lw== 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 u9si40322407plq.162.2019.04.16.11.00.36; Tue, 16 Apr 2019 11:00:53 -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 S1729468AbfDPR6U (ORCPT + 99 others); Tue, 16 Apr 2019 13:58:20 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57602 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730273AbfDPRxp (ORCPT ); Tue, 16 Apr 2019 13:53:45 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hGSHA-0005XN-KI; 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 30/62] ocfs2: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:53:08 +0100 Message-Id: <20190416175340.21068-30-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/super.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index 96ae7cedd487..7982a93e630f 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c @@ -134,7 +134,7 @@ static int ocfs2_get_sector(struct super_block *sb, int block, int sect_size); static struct inode *ocfs2_alloc_inode(struct super_block *sb); -static void ocfs2_destroy_inode(struct inode *inode); +static void ocfs2_free_inode(struct inode *inode); static int ocfs2_susp_quotas(struct ocfs2_super *osb, int unsuspend); static int ocfs2_enable_quotas(struct ocfs2_super *osb); static void ocfs2_disable_quotas(struct ocfs2_super *osb); @@ -147,7 +147,7 @@ static struct dquot **ocfs2_get_dquots(struct inode *inode) static const struct super_operations ocfs2_sops = { .statfs = ocfs2_statfs, .alloc_inode = ocfs2_alloc_inode, - .destroy_inode = ocfs2_destroy_inode, + .free_inode = ocfs2_free_inode, .drop_inode = ocfs2_drop_inode, .evict_inode = ocfs2_evict_inode, .sync_fs = ocfs2_sync_fs, @@ -575,17 +575,11 @@ static struct inode *ocfs2_alloc_inode(struct super_block *sb) return &oi->vfs_inode; } -static void ocfs2_i_callback(struct rcu_head *head) +static void ocfs2_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); kmem_cache_free(ocfs2_inode_cachep, OCFS2_I(inode)); } -static void ocfs2_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, ocfs2_i_callback); -} - static unsigned long long ocfs2_max_file_offset(unsigned int bbits, unsigned int cbits) { -- 2.11.0