Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934579AbbEOLhN (ORCPT ); Fri, 15 May 2015 07:37:13 -0400 Received: from mta-out1.inet.fi ([62.71.2.227]:47594 "EHLO kirsi1.inet.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934527AbbEOLhJ (ORCPT ); Fri, 15 May 2015 07:37:09 -0400 Date: Fri, 15 May 2015 14:36:46 +0300 From: "Kirill A. Shutemov" To: Vlastimil Babka Cc: "Kirill A. Shutemov" , Andrew Morton , Andrea Arcangeli , Hugh Dickins , Dave Hansen , Mel Gorman , Rik van Riel , Christoph Lameter , Naoya Horiguchi , Steve Capper , "Aneesh Kumar K.V" , Johannes Weiner , Michal Hocko , Jerome Marchand , Sasha Levin , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCHv5 05/28] mm: adjust FOLL_SPLIT for new refcounting Message-ID: <20150515113646.GE6250@node.dhcp.inet.fi> References: <1429823043-157133-1-git-send-email-kirill.shutemov@linux.intel.com> <1429823043-157133-6-git-send-email-kirill.shutemov@linux.intel.com> <5555D2F7.5070301@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5555D2F7.5070301@suse.cz> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1329 Lines: 30 On Fri, May 15, 2015 at 01:05:27PM +0200, Vlastimil Babka wrote: > On 04/23/2015 11:03 PM, Kirill A. Shutemov wrote: > >We need to prepare kernel to allow transhuge pages to be mapped with > >ptes too. We need to handle FOLL_SPLIT in follow_page_pte(). > > > >Also we use split_huge_page() directly instead of split_huge_page_pmd(). > >split_huge_page_pmd() will gone. > > You still call split_huge_page_pmd() for the is_huge_zero_page(page) case. For huge zero page we split PMD into table of zero pages and don't touch compound page under it. That's what split_huge_page_pmd() (renamed into split_huge_pmd()) will do by the end of patchset. > Also, of the code around split_huge_page() you basically took from > split_huge_page_pmd() and open-coded into follow_page_mask(), you didn't > include the mmu notifier calls. Why are they needed in split_huge_page_pmd() > but not here? We do need mmu notifier in split_huge_page_pmd() for huge zero page. When we need to split compound page we go into split_huge_page() which takes care about mmut notifiers. -- Kirill A. Shutemov -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/