Return-Path: Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 57F0821DF37A9 for ; Mon, 14 Aug 2017 01:27:52 -0700 (PDT) Date: Mon, 14 Aug 2017 10:30:12 +0200 From: Jan Kara Subject: Re: [RFC PATCH 0/7] dax, ext4: Synchronous page faults Message-ID: <20170814083012.GB16353@quack2.suse.cz> References: <20170727215713.GA22000@linux.intel.com> <20170728093821.GB29433@quack2.suse.cz> <20170801110241.GE6742@infradead.org> <20170801112603.GG4215@quack2.suse.cz> <20170811100327.GD7064@infradead.org> <20170813092556.GA19019@infradead.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20170813092556.GA19019@infradead.org> 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: Christoph Hellwig Cc: Jan Kara , linux-nvdimm , Dave Chinner , linux-xfs@vger.kernel.org, Andy Lutomirski , Linux FS Devel , "linux-ext4@vger.kernel.org" List-ID: On Sun 13-08-17 02:25:56, Christoph Hellwig wrote: > On Sat, Aug 12, 2017 at 07:44:14PM -0700, Dan Williams wrote: > > How about MAP_SYNC == (MAP_SHARED|MAP_PRIVATE)? On older kernels that > > should get -EINVAL, and on new kernels it means SYNC+SHARED. > > Cute trick, but I'd hate to waster it just for our little flag. > > How about: > > #define __MAP_VALIDATE MAP_SHARED|MAP_PRIVATE > #define MAP_SYNC 0x??? | __MAP_VALIDATE > > so that we can reuse that trick for any new flag? Heh, that's such an ugly hack that it is cute ;)... I'll use this definition of MAP_SYNC in my patches and send new version of the series (probably today in the afternoon if the testing goes fine). Honza -- Jan Kara SUSE Labs, CR _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm