Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp455474pxb; Thu, 26 Aug 2021 07:02:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLibelfq/N46wQW8hGgtambu+e5FyzEEm8JB6Uas77hgHxIVTaFSOzfSLJhzLVWG1fDJOA X-Received: by 2002:a2e:804a:: with SMTP id p10mr3261872ljg.216.1629986522150; Thu, 26 Aug 2021 07:02:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629986522; cv=none; d=google.com; s=arc-20160816; b=vCkxesrRlZWte9HJ3eLr4Unqd0uFDy9/WFF6nC9wOxsWRZibGKe6ADrAhqEOqMs6ZG yk4EcD/tdFGHah8HvMWbiji7kOzwcgBCPjURjv5PVM/R7hAKYU8IjcBfcFr+PUyVXPqt tkWk05B7BPFqjQkDyB6vN9nLM62YBDuxBerxq6kRYJ1SkpC++PGdoJoBD+iSAyAC3x0E LN8nhSuvYWrd899gl3MUO7u2i7SE2lVK6n1cxNxcv7lOHDgSd49+l46IzprcE9/aXwDE bs1Tk1z0foNcOsGXlCkym2C+MkEfLTdTRNhwdd9fflN0Ulluhykaocy/FFslBMMFPgJd 8RAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xsgIFzxQcm7/75yk92P3+DjSD9vC4RZ+TXwp6UhKe3M=; b=q5fuspzc10ibST18Al1MItQTmnzl6yfi/enuFiQiDlp/rbEv4rDsq2Pg9d3qBeGD/l CLCiMMfmFimiaeWYsXhrQ7T7PSlcmCb+OhHivcjd22AXp8qrWBzBPrnQyrZ/vjxigiGe mgioYiuI+RqoVddC4LttH4t/JlCkCVBfFwSxTYNP5uSpY0T+d6xcZt1ErEnx45j6qi8K 61ZJRwE//SCjh/IfcFp0kR5fR/gEbaP6ZEDP8Fv4su6/z1p4bOfHkPqXtscd4Pk+xsAG ukZcxdW2wyDIeqfVDd3/HkO0POfCkVYR1wc2G3c/LRWPCmzthtR6XDHCMptsb0AWdaJs nd+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=PNHWaM6l; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 8si2632820ejx.341.2021.08.26.07.01.19; Thu, 26 Aug 2021 07:02:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=PNHWaM6l; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242776AbhHZOBH (ORCPT + 99 others); Thu, 26 Aug 2021 10:01:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242728AbhHZOBH (ORCPT ); Thu, 26 Aug 2021 10:01:07 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6138AC061757; Thu, 26 Aug 2021 07:00:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=xsgIFzxQcm7/75yk92P3+DjSD9vC4RZ+TXwp6UhKe3M=; b=PNHWaM6ldrtGq8lNZSRanVORBt 8Qv4vpsL6DawDYhdSMaSDIixgGGOqnS7vZbaODeQl7TMGtGwfmkhQK5HI/b8S31Dw3kPYcKgRvgfm 3kXNMDS9ze8QxvKaqXR83qnFLvSC/2mp9Cg7tkoBqcEkL3IjxffpYfabLnIVQdi3CeT/PDwcn9awG O05RnaeACziZmFROZbx66xe+Fz9Tu+Wg0eOet7QTTfXCKlWOq7zaaXJmXUSRxpgPAhhIyOzi+kBii 1sC9Tu3QWvG72aElKbplMkpbz8EB7eBwI74mYZ3p1ANgH6zxVnK3c/joyYjxRxlTwNj+Xs8q1O5RC wUptimng==; Received: from [2001:4bb8:193:fd10:d9d9:6c15:481b:99c4] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mJFt0-00DM9a-1Y; Thu, 26 Aug 2021 13:58:06 +0000 From: Christoph Hellwig To: Dan Williams , Vishal Verma , Dave Jiang Cc: Mike Snitzer , Matthew Wilcox , linux-xfs@vger.kernel.org, nvdimm@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org Subject: [PATCH 3/9] dm: use fs_dax_get_by_bdev instead of dax_get_by_host Date: Thu, 26 Aug 2021 15:55:04 +0200 Message-Id: <20210826135510.6293-4-hch@lst.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210826135510.6293-1-hch@lst.de> References: <20210826135510.6293-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org There is no point in trying to finding the dax device if the DAX flag is not set on the queue as none of the users of the device mapper exported block devices could make use of the DAX capability. Signed-off-by: Christoph Hellwig Reviewed-by: Dan Williams --- drivers/md/dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 2c5f9e585211..465714341300 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -650,7 +650,7 @@ static int open_table_device(struct table_device *td, dev_t dev, } td->dm_dev.bdev = bdev; - td->dm_dev.dax_dev = dax_get_by_host(bdev->bd_disk->disk_name); + td->dm_dev.dax_dev = fs_dax_get_by_bdev(bdev); return 0; } -- 2.30.2