From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752126AbdFLECm (ORCPT ); Mon, 12 Jun 2017 00:02:42 -0400 Received: from mga04.intel.com ([192.55.52.120]:45894 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751841AbdFLECj (ORCPT ); Mon, 12 Jun 2017 00:02:39 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,332,1493708400"; d="scan'208";a="979587314" Date: Sun, 11 Jun 2017 22:02:36 -0600 From: Ross Zwisler To: Dan Williams Cc: Ross Zwisler , Andrew Morton , Linux Kernel Mailing List , linux-xfs@vger.kernel.org, "Theodore Ts'o" , Matthew Wilcox , "Darrick J. Wong" , Jonathan Corbet , Steven Rostedt , linux-doc@vger.kernel.org, linux-mm , Dave Hansen , Ingo Molnar , Andreas Dilger , Alexander Viro , linux-fsdevel , Jan Kara , ext4 hackers , Christoph Hellwig , "linux-nvdimm@lists.01.org" Subject: Re: [PATCH 1/3] mm: add vm_insert_mixed_mkwrite() Message-ID: <20170612040236.GA7352@linux.intel.com> Mail-Followup-To: Ross Zwisler , Dan Williams , Andrew Morton , Linux Kernel Mailing List , linux-xfs@vger.kernel.org, Theodore Ts'o , Matthew Wilcox , "Darrick J. Wong" , Jonathan Corbet , Steven Rostedt , linux-doc@vger.kernel.org, linux-mm , Dave Hansen , Ingo Molnar , Andreas Dilger , Alexander Viro , linux-fsdevel , Jan Kara , ext4 hackers , Christoph Hellwig , "linux-nvdimm@lists.01.org" References: <20170607204859.13104-1-ross.zwisler@linux.intel.com> <20170610030346.GA3575@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.0 (2017-02-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.