From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 26F482125ADF0 for ; Thu, 9 May 2019 05:24:27 -0700 (PDT) Date: Thu, 9 May 2019 08:24:24 -0400 (EDT) From: Pankaj Gupta 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" To: Dan Williams Cc: cohuck@redhat.com, Jan Kara , KVM list , "Michael S. Tsirkin" , Jason Wang , david , Qemu Developers , virtualization@lists.linux-foundation.org, Andreas Dilger , Ross Zwisler , Andrea Arcangeli , linux-nvdimm , David Hildenbrand , Matthew Wilcox , Christoph Hellwig , Linux ACPI , linux-ext4 , Len Brown , kilobyte@angband.pl, Rik van Riel , yuval shaia , Stefan Hajnoczi , Paolo Bonzini , lcapitulino@redhat.com, Kevin Wolf , Nitesh Narayan Lal , Theodore Ts'o , Xiao Guangrong , "Darrick J. Wong" , "Rafael J. Wysocki" , Linux Kernel Mailing List , linux-xfs , linux-fsdevel , Igor Mammedov List-ID: > > > > 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 > _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm