Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2190573pxb; Mon, 23 Aug 2021 14:16:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjukrnWMSXIRUnWhWXlpVSW5ZuEQKn1YifW8sPOIPGz1Inxa9+Rv1pCGcBSnx0e1Pze8P+ X-Received: by 2002:a17:906:f92:: with SMTP id q18mr38843754ejj.353.1629753401172; Mon, 23 Aug 2021 14:16:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629753401; cv=none; d=google.com; s=arc-20160816; b=Y+UpZdXKhKtW+9O8O3Cok6+CWFSD54BJSagtndgYiCgghX2CEhXs1jDecNARrOtkM0 HWxy1j/+n3Ypw1mdx6TGMRaztV/s2ih0aFEJd29P5327fdlkXUGjw9cj8oxoY3L9YoEr 4MMkk6GIuxuursAdQqOnswL0ICMjT//Wrl85UnC+TcBq+yAGtMMgVLDaCaiqt0IM40qz 24fCBP9kg2EarYxPxLGXJXk4N2u9VQYJ+u0cV8bsHgRdYHIJHp36d+UoDfWHINpXUMS6 5MTeIshUnydAYkARte5tsWZrEwe/KSn1Exx6SkU4KW2X6eA8E3WfWwxs2p2dD+txW5B2 tHow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=0HdgMfJjfBUm06w/tbdcTogg+ww6k//RogO3PbAJzw0=; b=yBjmtKjdvQZ59bkEXc3qSEbuLkWWUkBP3Mq38rOK9jLebKuYsRfV6Ygc+K3iZNAKMm SQC31lHueBAU1r0Hg+CHXT9l72ag2sZ9SvLL3XJ8v8eS0YjTWivHyaTyeyZLyMl46Efm 28QTBr4uf/ikxtf2hodWSeWiJ1TKnfIUa2xixoNVubvLF27o54sO1s/G+V0tyJ9xUNMl HBl86fy2zRqHbFxSsKle5RA/y0E3zc/ac13UwsC+FHNOMT1LI1teVupQEWa49nnv7oPx pnliwSMFxgGlaxkS5YTg6Tae1t5J7JcUCsm4RuaSKsykgGLFDGMNQCUg3fj0YDDKqYwv WTIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=QxjpQlOp; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cm23si16788164edb.514.2021.08.23.14.16.17; Mon, 23 Aug 2021 14:16:41 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=QxjpQlOp; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232754AbhHWVQl (ORCPT + 99 others); Mon, 23 Aug 2021 17:16:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232724AbhHWVQl (ORCPT ); Mon, 23 Aug 2021 17:16:41 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78DE1C06175F for ; Mon, 23 Aug 2021 14:15:58 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id ot2-20020a17090b3b4200b0019127f8ed87so676489pjb.1 for ; Mon, 23 Aug 2021 14:15:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0HdgMfJjfBUm06w/tbdcTogg+ww6k//RogO3PbAJzw0=; b=QxjpQlOpuTkQV12epR2VAzo/40qiPmok1VA6W1DpNVqrUjJZzo6eDTeOAHSllTPRk5 PCHJj4sa6Cc+zFYb+qagXaPuZIVnelMvGgQSrmER0WaH8FCD6WbClmdwL/5ivRwnh7Tr OlxIZtj6qvJP26iCb46k2X+oYiRGJnM7szuyUAAjyWh/ew+lAPB9DLrS/JNm80ahAaQ3 OCezKZoWmAZh/d3UXDKW6re2ffhwpL/CbGe+scowDWt4jGvMyKioieZ/cTqBW3/sPEsw yQi9J5uIeeS+cZ9Q278rjGN4pnDH5ekMzhp0L914a+t9gnxjIOixK5iNFQn+7bU0o7zt ESCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0HdgMfJjfBUm06w/tbdcTogg+ww6k//RogO3PbAJzw0=; b=l32oVlnIBCyTj89p+vnL+3OsmTuYQp5xcu+B6YlprB/RO9jdDSNZjZ6nL72gmGYQtp WfOAHkpGJ08Ii2YLstP5+giY1iBV6uXoAdOnz0eQFpM1W3FaOA3G2MXhHP5kTWvDeVRJ rCzaIoIvrmwfeHWWcoYouBznh9YTgjT/TGANuatchUEYCWewnd26/cyARSi5eeczoo85 UP3J23tWnsf+vfUB2d9Ntxz/K6jkDhvrqESsg+ftP+jWaYn5C3WYwMs6Y0SbW+PMn4Yr oRTee7NP/BpIMPtxcR/pPLGMQ17lkl0oG4K2eIUxNy90I336aYgtNQYqFLcQlIjqLU6D MZ6g== X-Gm-Message-State: AOAM532eut8f2vj5N82Zz7V6IQPeFC6kohldQvPFBTqyTR8wimvzbLye 6sb6Ra5pbh/imLdWPcaQvRIftE6nTKbyODxriW1sBA== X-Received: by 2002:a17:90b:23d6:: with SMTP id md22mr517969pjb.149.1629753357862; Mon, 23 Aug 2021 14:15:57 -0700 (PDT) MIME-Version: 1.0 References: <20210823123516.969486-1-hch@lst.de> <20210823123516.969486-8-hch@lst.de> In-Reply-To: <20210823123516.969486-8-hch@lst.de> From: Dan Williams Date: Mon, 23 Aug 2021 14:15:47 -0700 Message-ID: Subject: Re: [PATCH 7/9] dax: stub out dax_supported for !CONFIG_FS_DAX To: Christoph Hellwig Cc: Vishal Verma , Dave Jiang , Mike Snitzer , Matthew Wilcox , linux-xfs , Linux NVDIMM , linux-fsdevel , linux-ext4 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, Aug 23, 2021 at 5:43 AM Christoph Hellwig wrote: > > dax_supported calls into ->dax_supported which checks for fsdax support. > Don't bother building it for !CONFIG_FS_DAX as it will always return > false. > Looks good, modulo formatting question below: Reviewed-by: Dan Williams > diff --git a/include/linux/dax.h b/include/linux/dax.h > index 0a3ef9701e03..32dce5763f2c 100644 > --- a/include/linux/dax.h > +++ b/include/linux/dax.h [..] > @@ -149,6 +144,13 @@ static inline bool bdev_dax_supported(struct block_device *bdev, > > #define generic_fsdax_supported NULL > > +static inline bool dax_supported(struct dax_device *dax_dev, > + struct block_device *bdev, int blocksize, sector_t start, > + sector_t len) > +{ > + return false; > +} I've started clang-formatting new dax and nvdimm code: static inline bool dax_supported(struct dax_device *dax_dev, struct block_device *bdev, int blocksize, sector_t start, sector_t len) { return false; } ...but I also don't mind staying consistent with the surrounding code for now.