From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f71.google.com (mail-oi0-f71.google.com [209.85.218.71]) by kanga.kvack.org (Postfix) with ESMTP id F243A6B0292 for ; Mon, 22 May 2017 16:34:46 -0400 (EDT) Received: by mail-oi0-f71.google.com with SMTP id t133so173437044oif.9 for ; Mon, 22 May 2017 13:34:46 -0700 (PDT) Received: from mail-oi0-x243.google.com (mail-oi0-x243.google.com. [2607:f8b0:4003:c06::243]) by mx.google.com with ESMTPS id o4si8042001otb.154.2017.05.22.13.34.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 May 2017 13:34:46 -0700 (PDT) Received: by mail-oi0-x243.google.com with SMTP id w138so24678747oiw.3 for ; Mon, 22 May 2017 13:34:46 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20170522162555.4313-1-punit.agrawal@arm.com> References: <20170522133604.11392-5-punit.agrawal@arm.com> <20170522162555.4313-1-punit.agrawal@arm.com> From: Arnd Bergmann Date: Mon, 22 May 2017 22:34:45 +0200 Message-ID: Subject: Re: [PATCH v3.1 4/6] mm/hugetlb: Allow architectures to override huge_pte_clear() Content-Type: text/plain; charset="UTF-8" Sender: owner-linux-mm@kvack.org List-ID: To: Punit Agrawal Cc: Andrew Morton , Linux-MM , Linux Kernel Mailing List , Linux ARM , Catalin Marinas , Will Deacon , n-horiguchi@ah.jp.nec.com, "Kirill A . Shutemov" , mike.kravetz@oracle.com, steve.capper@arm.com, Mark Rutland , linux-arch , "Aneesh Kumar K.V" , Martin Schwidefsky , Heiko Carstens On Mon, May 22, 2017 at 6:25 PM, Punit Agrawal wrote: > When unmapping a hugepage range, huge_pte_clear() is used to clear the > page table entries that are marked as not present. huge_pte_clear() > internally just ends up calling pte_clear() which does not correctly > deal with hugepages consisting of contiguous page table entries. > > Add a size argument to address this issue and allow architectures to > override huge_pte_clear() by wrapping it in a #ifndef block. > > Update s390 implementation with the size parameter as well. > > Note that the change only affects huge_pte_clear() - the other generic > hugetlb functions don't need any change. > > Signed-off-by: Punit Agrawal > Cc: Martin Schwidefsky > Cc: Heiko Carstens > Cc: Arnd Bergmann > Cc: "Aneesh Kumar K.V" > Cc: Mike Kravetz Acked-by: Arnd Bergmann -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org