Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3423582yba; Tue, 16 Apr 2019 11:01:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwyS825zJLVU6W9kx8n/v7OL11xYpR2vMHGHOuquxEGDmr0J6bfVLG8DWnzAtghUe6l0VSU X-Received: by 2002:a63:8143:: with SMTP id t64mr76549522pgd.301.1555437685069; Tue, 16 Apr 2019 11:01:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555437685; cv=none; d=google.com; s=arc-20160816; b=OV3r9OThZGixkWvmvZ2rH8hAduXfJJbm8laTDigJDy7I4iEbbClWmz0qS9//Ne+cJK 63CLNUa4KzncOVcwtNaQSfxltNOYmkPPZu0G4C7wGGUBPEV9tQtXAPieW+Wpr35cZXJD BMcJYvgB3fEXAzKIh6j1LPxrSGIF7NL6Qj+tZCZv55GA1rX0ZGl9qgMBf62HuK43YWMt JUxkey3SfV7KsPiO6OcZAUNTZSF7aKIjFOCCi1EY1VTiufbJierWcbcWX6lwLMZEm8LP 9cRWELcA7RkL08zo7jh47Rk9E2FTyilG9DohAksbEBp3aPvfBn6neyH+6aFyfUMQysI8 1Vzg== 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=hdQeZI5wvlOayuf95eEfKGeOwqecRJ4QmwXqdBWvsOI=; b=g0G7ghDEXmSvJByCVoLOJMV5cJ9sO8VF9Kn9MIM3W0LFtaxixRNZI+ks9rvKbKwRms un6mnH5WymKAYoCTDijfuhHJJu522g0K376xrHu7Fy48YcCErqHmjMsQZvdrhkWb7wXk d96BWIvNT80Tph9fZFTpSedAK6HBFgegnwOestPeiFki4PuVGR+fzE+6svWhXOH0JHDy n//6jS1UXpBiDM5f7mfHginVk7EQLTcwqus2w0mUhkpLq/22fVqsAQFMjOAm/DJcrCyQ ya56KTe9r1z2XELo3BCScVizH6hAbmdDX30xFQjqEMR73pMwCPesTtFgytlj72iAovdF rr+g== 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 k9si49350752pgc.156.2019.04.16.11.01.05; Tue, 16 Apr 2019 11:01:25 -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 S1730684AbfDPSAD (ORCPT + 99 others); Tue, 16 Apr 2019 14:00:03 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57526 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730225AbfDPRxn (ORCPT ); Tue, 16 Apr 2019 13:53:43 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hGSH8-0005VO-8b; 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 11/62] bdev: switch to ->free_inode() Date: Tue, 16 Apr 2019 18:52:49 +0100 Message-Id: <20190416175340.21068-11-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/block_dev.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/fs/block_dev.c b/fs/block_dev.c index 78d3257435c0..9d5fd05dd643 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -789,17 +789,9 @@ static struct inode *bdev_alloc_inode(struct super_block *sb) return &ei->vfs_inode; } -static void bdev_i_callback(struct rcu_head *head) +static void bdev_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); - struct bdev_inode *bdi = BDEV_I(inode); - - kmem_cache_free(bdev_cachep, bdi); -} - -static void bdev_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, bdev_i_callback); + kmem_cache_free(bdev_cachep, BDEV_I(inode)); } static void init_once(void *foo) @@ -839,7 +831,7 @@ static void bdev_evict_inode(struct inode *inode) static const struct super_operations bdev_sops = { .statfs = simple_statfs, .alloc_inode = bdev_alloc_inode, - .destroy_inode = bdev_destroy_inode, + .free_inode = bdev_free_inode, .drop_inode = generic_delete_inode, .evict_inode = bdev_evict_inode, }; -- 2.11.0