From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Wilcox Subject: Re: [PATCH v2] mm: Introduce new function vm_insert_kmem_page Date: Tue, 23 Oct 2018 05:59:28 -0700 Message-ID: <20181023125928.GC20085@bombadil.infradead.org> References: <20181023122435.GB20085@bombadil.infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Souptick Joarder Cc: Mark Rutland , Kate Stewart , Michal Hocko , Heiko Stuebner , airlied@linux.ie, linux@dominikbrodowski.net, linux-kernel@vger.kernel.org, Linux-MM , cpandya@codeaurora.org, linux1394-devel@lists.sourceforge.net, Marek Szyprowski , ak@linux.intel.com, Minchan Kim , linux-rockchip@lists.infradead.org, Russell King - ARM Linux , Peter Zijlstra , linux-arm-kernel@lists.infradead.org, "Huang, Ying" , tchibo@google.com, aryabinin@virtuozzo.com, treding@nvidia.com, riel@redhat.com, Kees Cook , Arnd Bergmann , rppt@linux.vnet.ibm.com, dri-devel@lists.freedesktop.org, Dan Williams , Andrew Morton List-Id: linux-rockchip.vger.kernel.org On Tue, Oct 23, 2018 at 06:03:42PM +0530, Souptick Joarder wrote: > On Tue, Oct 23, 2018 at 5:54 PM Matthew Wilcox wrote: > > On Tue, Oct 23, 2018 at 05:44:32PM +0530, Souptick Joarder wrote: > > > Instruction from Matthew Wilcox who is supervising the entire vm_fault_t > > > migration work :-) > > > > Hang on. That was for the initial vm_fault_t conversion in which each > > step was clearly an improvement. What you're looking at now is far > > from that. > > Ok. But my understanding was, the approach of vm_insert_range comes > into discussion as part of converting vm_insert_page into vmf_insert_page > which is still part of original vm_fault_t conversion discussion. No ? No. The initial part (converting all page fault methods to vm_fault_t) is done. What remains undone (looking at akpm's tree) is changing the typedef of vm_fault_t from int to unsigned int. That will prevent new page fault handlers with the wrong type from being added. I don't necessarily want to get rid of vm_insert_page(). Maybe it will make sense to do that, and maybe not. What I do want to see is thought, and not "Matthew told me to do it", when I didn't.