Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1043269iob; Fri, 13 May 2022 20:49:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpHFQeMcUofgysIWu9wUVlFcpf7+hp4XwpXstp8l1xqhIrxVGc6zh2Mme2YoVdoo6CWQ0R X-Received: by 2002:a5d:5012:0:b0:20a:d9a9:44dc with SMTP id e18-20020a5d5012000000b0020ad9a944dcmr6171862wrt.627.1652500194119; Fri, 13 May 2022 20:49:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652500194; cv=none; d=google.com; s=arc-20160816; b=xY4owSRTXCrwv1leXJ5NJn2F6kx5u+0v/n3fdR+ytsft5SyaoWZSek1mSQ2Wk67gDn +VDZg4utUsUyQp7uFSV4CdhT1emHOoV4MRz0VMJnBKDvgyMdXZvhtw7ov3sFizcqSxPg m6LfwFrt9BJJrFCZro31cVsPLI8td9wO1+k5WEgDEk5ff5ue5fKxOSFtPBMcC9VWyHbw HYWOgbGC1q+p4DmtA1Z8EHah9lni672/0XCcDewqy9FMkONdSpmOQpuuxyS4hlrYvcqT M19IZ0kqTO9vMtEo6qrru1nXOTtfIN3ODRvS1J8khVZt+TFhEnEZ4Luo3cqPl3JT67hi nIPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Mip6GB+UOxs40OE0wM8HSHN4JOWEcgh6ZJadFhE8R6M=; b=uA9Q2Ru0k0rZ4WJNqPeZJlNuQXuySwZA2RD0ffpSgHimgH8tqJpNJqewY0FIaXsIB3 QDJ8E85kPoVz0SesP05mRqf2pxiVb5/q0asDOKG5jRsPg3NcuP6ZdzNUt32v/tM582jG jI1rHeEBIMorOH3U6s1C/xg0mpFv5lw6BQROEtgSms47EjHLZBQq7/8XGBOHneofgk9Z Ff2WFvKTJs5m1Gfu36hoFyWZIaf7wlPOgniNDy4xmFu3blozedGa4yeuQyXZ6AwVuXhg v5yyYCtqD+iFn7x0nJHCKTMJJ0xkkJZTnaKyAYOD4Xj1vApi17XZFXDiItqB0xmiabiw kakw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20210112.gappssmtp.com header.s=20210112 header.b=hG3F2MTW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id g5-20020a5d5405000000b0020794dc733esi3401411wrv.483.2022.05.13.20.49.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 20:49:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel-com.20210112.gappssmtp.com header.s=20210112 header.b=hG3F2MTW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 53073AEE28; Fri, 13 May 2022 17:22:46 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1384812AbiEMWJr (ORCPT + 99 others); Fri, 13 May 2022 18:09:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384803AbiEMWJp (ORCPT ); Fri, 13 May 2022 18:09:45 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03E34765F for ; Fri, 13 May 2022 15:09:44 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id i17so9184716pla.10 for ; Fri, 13 May 2022 15:09:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Mip6GB+UOxs40OE0wM8HSHN4JOWEcgh6ZJadFhE8R6M=; b=hG3F2MTWmspdKtHcKZJp220fMBZM5LR050BELG+dE11wxITHxXRC2n6V/hGuI8s7cw QQUImjQd8ydkGgqgaukb8rYw7e3mZMpVFGPbeXyQGY1/8AacuRbrw7a4IIJbkhjy9ABs RcyurlmuizIBp/nznhwbdGMyz1Bqfy2HL52+ZIR3nRRevvBxLNUS35/FRrYyN0s81m9u kpx1NbfR49gssH4i1uI9kJGSfPuCJZ9Tem2zirzgiuyF6NSu/PKBurU0pvg9yz0fgn+U r7r1IXiOoDuVmW26Q9XgEDFebIoZbKA+aFEsq5Fy/o0aEzpdXM3iMmJHCSL3LZ0S/l47 HxNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Mip6GB+UOxs40OE0wM8HSHN4JOWEcgh6ZJadFhE8R6M=; b=iNFPTCRn7BK9LT+S8t8co/rTfsGGBz6fqU6TAY6jXJeNFqSidPtNjb9pRp+svx2LS0 lXGnHAOdAeQ4BLqibBEeT0O5tgW2SpxxwG+Gq9zFHUHjWEtC1uNIQBCC6xguIwQb4XAK 1jhNa+kOIpEadmCsyvspkokIIIXBmoHVmUIXc5SEN/OWdV3nXKhK0+uj6eB2AClzDFJw 78Y0lnpjyZJ7A6oDmaqmEPS8ovFDsFYGBupMrAQIQZBLkx3NhQ3/2N2SGfCIBHbvi3F9 8l0MsmZkx82i6NDk1xjReMSzmRGGhHYZHK+MB64HvCslUIY15ej6JFshuwxaXZ9EPTzj 7pew== X-Gm-Message-State: AOAM533afkXRBHryFAelC0Q9QnvUof/uv5EGLKjvoA5SuGbeUtR0iCMa PddURTIS9IdH+cO3UzzyyOnt+fgXgRKDyoLmla2dOMU0zdkX8g== X-Received: by 2002:a17:90b:3845:b0:1dc:a733:2ece with SMTP id nl5-20020a17090b384500b001dca7332ecemr6990831pjb.220.1652479783256; Fri, 13 May 2022 15:09:43 -0700 (PDT) MIME-Version: 1.0 References: <20220422224508.440670-5-jane.chu@oracle.com> <165247892149.4131000.9240706498758561525.stgit@dwillia2-desk3.amr.corp.intel.com> In-Reply-To: <165247892149.4131000.9240706498758561525.stgit@dwillia2-desk3.amr.corp.intel.com> From: Dan Williams Date: Fri, 13 May 2022 15:09:32 -0700 Message-ID: Subject: Re: [PATCH v10 4/7] dax: introduce DAX_RECOVERY_WRITE dax access mode To: Linux Kernel Mailing List Cc: Jane Chu , Christoph Hellwig , Vivek Goyal , Mike Snitzer , Linux NVDIMM , linux-fsdevel , device-mapper development Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 13, 2022 at 2:56 PM Dan Williams wro= te: > > From: Jane Chu > > Up till now, dax_direct_access() is used implicitly for normal > access, but for the purpose of recovery write, dax range with > poison is requested. To make the interface clear, introduce > enum dax_access_mode { > DAX_ACCESS, > DAX_RECOVERY_WRITE, > } > where DAX_ACCESS is used for normal dax access, and > DAX_RECOVERY_WRITE is used for dax recovery write. > > Suggested-by: Dan Williams > Signed-off-by: Jane Chu > Reviewed-by: Christoph Hellwig > Cc: Vivek Goyal > Cc: Mike Snitzer > Signed-off-by: Dan Williams [..] > diff --git a/tools/testing/nvdimm/pmem-dax.c b/tools/testing/nvdimm/pmem-= dax.c > index af19c85558e7..dcc328eba811 100644 > --- a/tools/testing/nvdimm/pmem-dax.c > +++ b/tools/testing/nvdimm/pmem-dax.c > @@ -8,7 +8,8 @@ > #include > > long __pmem_direct_access(struct pmem_device *pmem, pgoff_t pgoff, > - long nr_pages, void **kaddr, pfn_t *pfn) > + long nr_pages, enum dax_access_mode mode, void **kaddr, > + pfn_t *pfn) Local build test reports: tools/testing/nvdimm/pmem-dax.c:11:53: error: parameter 4 (=E2=80=98mode=E2= =80=99) has incomplete type 11 | long nr_pages, enum dax_access_mode mode, void **ka= ddr, | ~~~~~~~~~~~~~~~~~~~~~^~~~ ...so need to include linux/dax.h in this file now for that definition.