From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758055AbbJ2VUJ (ORCPT ); Thu, 29 Oct 2015 17:20:09 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:38496 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751917AbbJ2VUH (ORCPT ); Thu, 29 Oct 2015 17:20:07 -0400 Date: Thu, 29 Oct 2015 23:20:04 +0200 From: "Kirill A. Shutemov" To: Naoya Horiguchi Cc: "Kirill A. Shutemov" , Andrew Morton , Andrea Arcangeli , Hugh Dickins , Dave Hansen , Mel Gorman , Rik van Riel , Vlastimil Babka , Christoph Lameter , 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: [PATCHv12 26/37] mm: rework mapcount accounting to enable 4k mapping of THPs Message-ID: <20151029212004.GA13368@node.shutemov.name> References: <1444145044-72349-1-git-send-email-kirill.shutemov@linux.intel.com> <1444145044-72349-27-git-send-email-kirill.shutemov@linux.intel.com> <20151029081924.GA12189@hori1.linux.bs1.fc.nec.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151029081924.GA12189@hori1.linux.bs1.fc.nec.co.jp> 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 On Thu, Oct 29, 2015 at 08:19:25AM +0000, Naoya Horiguchi wrote: > On Tue, Oct 06, 2015 at 06:23:53PM +0300, Kirill A. Shutemov wrote: > ... > > diff --git a/mm/migrate.c b/mm/migrate.c > > index 0268013cce63..45fadab47c53 100644 > > --- a/mm/migrate.c > > +++ b/mm/migrate.c > > @@ -165,7 +165,7 @@ static int remove_migration_pte(struct page *new, struct vm_area_struct *vma, > > if (PageAnon(new)) > > hugepage_add_anon_rmap(new, vma, addr); > > else > > - page_dup_rmap(new); > > + page_dup_rmap(new, false); > > This is for hugetlb page, so the second argument should be true, right? You are right. Fixup: index 1ae0113559c9..b1034f9c77e7 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -165,7 +165,7 @@ static int remove_migration_pte(struct page *new, struct vm_area_struct *vma, if (PageAnon(new)) hugepage_add_anon_rmap(new, vma, addr); else - page_dup_rmap(new, false); + page_dup_rmap(new, true); } else if (PageAnon(new)) page_add_anon_rmap(new, vma, addr, false); else -- Kirill A. Shutemov