Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754443AbbBKWV7 (ORCPT ); Wed, 11 Feb 2015 17:21:59 -0500 Received: from mta-out1.inet.fi ([62.71.2.203]:53092 "EHLO kirsi1.inet.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753428AbbBKWV6 (ORCPT ); Wed, 11 Feb 2015 17:21:58 -0500 Date: Thu, 12 Feb 2015 00:21:40 +0200 From: "Kirill A. Shutemov" To: Andrea Arcangeli Cc: Ebru Akagunduz , linux-mm@kvack.org, akpm@linux-foundation.org, mhocko@suse.cz, mgorman@suse.de, rientjes@google.com, sasha.levin@oracle.com, hughd@google.com, hannes@cmpxchg.org, vbabka@suse.cz, linux-kernel@vger.kernel.org, riel@redhat.com Subject: Re: [PATCH v2] mm: incorporate zero pages into transparent huge pages Message-ID: <20150211222140.GA12928@node.dhcp.inet.fi> References: <1423688635-4306-1-git-send-email-ebru.akagunduz@gmail.com> <20150211221600.GN11755@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150211221600.GN11755@redhat.com> 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: 1199 Lines: 35 On Wed, Feb 11, 2015 at 11:16:00PM +0100, Andrea Arcangeli wrote: > On Wed, Feb 11, 2015 at 11:03:55PM +0200, Ebru Akagunduz wrote: > > Changes in v2: > > - Check zero pfn in release_pte_pages() (Andrea Arcangeli) > > .. and in: > > > @@ -2237,7 +2237,7 @@ static void __collapse_huge_page_copy(pte_t *pte, struct page *page, > > pte_t pteval = *_pte; > > struct page *src_page; > > > > - if (pte_none(pteval)) { > > + if (pte_none(pteval) || is_zero_pfn(pte_pfn(pteval))) { > > clear_user_highpage(page, address); > > add_mm_counter(vma->vm_mm, MM_ANONPAGES, 1); > > } else { > > __collapse_huge_page_copy, both were needed as far as I can tell. There was is_zero_pfn(pte_pfn(pteval)) in __collapse_huge_page_copy() in original patch. > I haven't tested it but it's looking good. > > Reviewed-by: Andrea Arcangeli Acked-by: Kirill A. Shutemov -- 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/