Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp745516yba; Thu, 9 May 2019 05:24:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzaDpuDvy4YaiOPuZrGa1yrJ+hVUwEYq9yqBnky8qzrlrviQZgNg0XkS5AGP3BG4Ok00gU0 X-Received: by 2002:a65:5684:: with SMTP id v4mr5077767pgs.160.1557404699603; Thu, 09 May 2019 05:24:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557404699; cv=none; d=google.com; s=arc-20160816; b=PRSPoNZjXtzPUVkb4eGtkXs0kILI6BVgWo3gLcr4ZKmO7ZVvQsWFzTtB8Pj1LvvWv1 X/FVIfqT0HewY0fSC9aM7flH2T+Dy2lC4BFReoU+8az2Yu4bgvbTGTw/ieuvnX91prWW HQfiPWOoszygQs6f8HP8nSiBc2nBK2RL1M7ZSVJW1+wxyWN7cylMaTiPV5iULgwQ9fML 573mebd/I/ph2XU7s9D/+DSFNW+tWtzZ3S4oRhNsGn2u1hGU1gj9bYyzYmN9ILRn39A+ +E3/4r+oySbaJWzDZCpGXEOfJbo3F/tHnXLwRslq+A5Pbh8Als+jyylXRMrkxDqDbPCy Izdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=I+NwfUdFPT3UzYwU0noIdcGrRsvk429n19lh/CW2usk=; b=Y4P7gwa5ySOCs7wt5SW6vJ8Y/zh+dn60FOtErOVxH/Yc59zSO1idneSeHsCRQakMGP smQUphzogOfJPdT6BCZjUBPx27slxwJkKYlhvuRO+Jd4TAUfV4/w8CSyY//8KIMZXXFS is5TgkR8ZiUiU3Oo70mC7w340dovOt1+qVMAKOsPKOJAKmsP24QnJ/yDzuRlPdcoNFA4 OlnD4RZpa6tNO0Hdp9nvHNCwLtZ5C94WGTbtM4uk447a6XRrpv0mIeBGE+s0NS1PVgHc C0qTp9faTEBjDEEy3MdxJC9crVFV3GPJjN2Jf1rI2lXIwOS/z2s0lisbcBHCz/jHcA4L oPxA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l12si2751164pgq.329.2019.05.09.05.24.33; Thu, 09 May 2019 05:24:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-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-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726495AbfEIMY0 (ORCPT + 99 others); Thu, 9 May 2019 08:24:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33290 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726438AbfEIMY0 (ORCPT ); Thu, 9 May 2019 08:24:26 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2D91C307D98F; Thu, 9 May 2019 12:24:26 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AA6435C226; Thu, 9 May 2019 12:24:25 +0000 (UTC) Received: from zmail21.collab.prod.int.phx2.redhat.com (zmail21.collab.prod.int.phx2.redhat.com [10.5.83.24]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 257BD41F58; Thu, 9 May 2019 12:24:25 +0000 (UTC) Date: Thu, 9 May 2019 08:24:24 -0400 (EDT) From: Pankaj Gupta To: Dan Williams Cc: linux-nvdimm , Linux Kernel Mailing List , virtualization@lists.linux-foundation.org, KVM list , linux-fsdevel , Linux ACPI , Qemu Developers , linux-ext4 , linux-xfs , Ross Zwisler , Vishal L Verma , Dave Jiang , "Michael S. Tsirkin" , Jason Wang , Matthew Wilcox , "Rafael J. Wysocki" , Christoph Hellwig , Len Brown , Jan Kara , Theodore Ts'o , Andreas Dilger , "Darrick J. Wong" , lcapitulino@redhat.com, Kevin Wolf , Igor Mammedov , jmoyer , Nitesh Narayan Lal , Rik van Riel , Stefan Hajnoczi , Andrea Arcangeli , David Hildenbrand , david , cohuck@redhat.com, Xiao Guangrong , Paolo Bonzini , kilobyte@angband.pl, yuval shaia Message-ID: <511098535.27565704.1557404664499.JavaMail.zimbra@redhat.com> In-Reply-To: References: <20190426050039.17460-1-pagupta@redhat.com> <20190426050039.17460-4-pagupta@redhat.com> Subject: Re: [PATCH v7 3/6] libnvdimm: add dax_dev sync flag MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.116.88, 10.4.195.16] Thread-Topic: libnvdimm: add dax_dev sync flag Thread-Index: ojaRi4mgEPnvOvl3Gx+91mTiXiceZg== X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Thu, 09 May 2019 12:24:26 +0000 (UTC) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org > > > > This patch adds 'DAXDEV_SYNC' flag which is set > > for nd_region doing synchronous flush. This later > > is used to disable MAP_SYNC functionality for > > ext4 & xfs filesystem for devices don't support > > synchronous flush. > > > > Signed-off-by: Pankaj Gupta > [..] > > diff --git a/include/linux/dax.h b/include/linux/dax.h > > index 0dd316a74a29..c97fc0cc7167 100644 > > --- a/include/linux/dax.h > > +++ b/include/linux/dax.h > > @@ -7,6 +7,9 @@ > > #include > > #include > > > > +/* Flag for synchronous flush */ > > +#define DAXDEV_F_SYNC true > > I'd feel better, i.e. it reads more canonically, if this was defined > as (1UL << 0) and the argument to alloc_dax() was changed to 'unsigned > long flags' rather than a bool. Sure, Will send a v8 with suggested changes. Thank You, Pankaj >