Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (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 24EEB21A16EDD for ; Sun, 11 Jun 2017 21:01:25 -0700 (PDT) Date: Sun, 11 Jun 2017 22:02:36 -0600 From: Ross Zwisler Subject: Re: [PATCH 1/3] mm: add vm_insert_mixed_mkwrite() Message-ID: <20170612040236.GA7352@linux.intel.com> References: <20170607204859.13104-1-ross.zwisler@linux.intel.com> <20170610030346.GA3575@linux.intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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: Dave Hansen , Jonathan Corbet , Theodore Ts'o , Matthew Wilcox , "Darrick J. Wong" , linux-doc@vger.kernel.org, Linux Kernel Mailing List , Steven Rostedt , Christoph Hellwig , linux-xfs@vger.kernel.org, linux-mm , Ingo Molnar , Andreas Dilger , Alexander Viro , linux-fsdevel , Jan Kara , ext4 hackers , Andrew Morton , "linux-nvdimm@lists.01.org" List-ID: On Fri, Jun 09, 2017 at 08:35:08PM -0700, Dan Williams wrote: > On Fri, Jun 9, 2017 at 8:03 PM, Ross Zwisler > wrote: > > And vm_insert_mixed_mkwrite() and vm_insert_mixed() are redundant with only > > the insert_pfn() line differing? This doesn't seem better...unless I'm > > missing something? > > > > The way it is, vm_insert_mixed_mkwrite() also closely matches > > insert_pfn_pmd(), which we use in the PMD case and which also takes a 'write' > > boolean which works the same as our newly added 'mkwrite'. > > Hmm, but now the pfn and pmd cases are inconsistent, if you put the > flag name in the function then don't add an argument, or make it like > the pmd case and add an argument to vm_insert_mixed(). I prefer the > former. Okay, I'll fix this for v2. Thanks for the review. _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm