From patchwork Tue Aug 8 16:15:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 13346962 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F198C3DA40 for ; Tue, 8 Aug 2023 19:58:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234177AbjHHT6m (ORCPT ); Tue, 8 Aug 2023 15:58:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234229AbjHHT62 (ORCPT ); Tue, 8 Aug 2023 15:58:28 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 599151D458; Tue, 8 Aug 2023 11:13:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=6HgAL/KtG6BIrCTojp54NExjj/op5Heh2wQHIwFIOw8=; b=Y4FbUYtax9t7VP9ZegUvLd4+x5 eZls+Qo+cTUlxc0Q6s/WHBwevaZXNBLt2XUR0x+T80Z700W0S6XQPrkqsHgiaCvZ9fPWBxEinKiGu BrunxR/FwHG2Zpt126cev29UVZhqMN2XEYa+fbOu2jUpkm7XB2Zz9yLiqaoi4sOgOq3vnzQ7J1KFC E7mi42WXjGryjk3wVuDntKtA+jsukhBNr2RPa/HclXvjBilyY7jRY8+zAERowtB0doR2c4hdBqPjz fEOICxgag79DSOqctlo2OtvzlK7EseQrUpO3H8oKKk36LbqEgTePTSHzlws7IVRQmxkN0H/1CA7b2 UgG/5igg==; Received: from [4.28.11.157] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qTPNK-002vdZ-3D; Tue, 08 Aug 2023 16:16:03 +0000 From: Christoph Hellwig To: Al Viro , Christian Brauner Cc: Namjae Jeon , Sungjong Seo , "Theodore Ts'o" , Andreas Dilger , Konstantin Komarov , "Darrick J. Wong" , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, ntfs3@lists.linux.dev, linux-xfs@vger.kernel.org Subject: [PATCH 05/13] xfs: don't call invalidate_bdev in xfs_free_buftarg Date: Tue, 8 Aug 2023 09:15:52 -0700 Message-Id: <20230808161600.1099516-6-hch@lst.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230808161600.1099516-1-hch@lst.de> References: <20230808161600.1099516-1-hch@lst.de> MIME-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org XFS never uses the block device mapping, so there is no point in calling invalidate_bdev which invalidates said mapping. Signed-off-by: Christoph Hellwig --- fs/xfs/xfs_buf.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c index 15d1e5a7c2d340..83b8702030f71d 100644 --- a/fs/xfs/xfs_buf.c +++ b/fs/xfs/xfs_buf.c @@ -1944,7 +1944,6 @@ xfs_free_buftarg( list_lru_destroy(&btp->bt_lru); blkdev_issue_flush(btp->bt_bdev); - invalidate_bdev(btp->bt_bdev); fs_put_dax(btp->bt_daxdev, btp->bt_mount); kmem_free(btp);