From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pb0-f46.google.com (mail-pb0-f46.google.com [209.85.160.46]) by kanga.kvack.org (Postfix) with ESMTP id 305A56B0037 for ; Fri, 31 Jan 2014 17:52:27 -0500 (EST) Received: by mail-pb0-f46.google.com with SMTP id um1so4946176pbc.19 for ; Fri, 31 Jan 2014 14:52:26 -0800 (PST) Received: from mail.linuxfoundation.org (mail.linuxfoundation.org. [140.211.169.12]) by mx.google.com with ESMTP id a6si12020157pao.331.2014.01.31.14.52.26 for ; Fri, 31 Jan 2014 14:52:26 -0800 (PST) Date: Fri, 31 Jan 2014 14:52:24 -0800 From: Andrew Morton Subject: Re: [PATCH 1/3] Revert "thp: make MADV_HUGEPAGE check for mm->def_flags" Message-Id: <20140131145224.7f8efc67d882a2e1a89b0778@linux-foundation.org> In-Reply-To: <1391192628-113858-3-git-send-email-athorlton@sgi.com> References: <1391192628-113858-1-git-send-email-athorlton@sgi.com> <1391192628-113858-3-git-send-email-athorlton@sgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Alex Thorlton Cc: linux-kernel@vger.kernel.org, Oleg Nesterov , Gerald Schaefer , Martin Schwidefsky , Heiko Carstens , Christian Borntraeger , Paolo Bonzini , "Kirill A. Shutemov" , Mel Gorman , Rik van Riel , Ingo Molnar , Peter Zijlstra , Sasha Levin , linux390@de.ibm.com, linux-s390@vger.kernel.org, linux-mm@kvack.org On Fri, 31 Jan 2014 12:23:43 -0600 Alex Thorlton wrote: > This reverts commit 8e72033f2a489b6c98c4e3c7cc281b1afd6cb85cm, and adds 'm' is not a hex digit ;) > in code to fix up any issues caused by the revert. > > The revert is necessary because hugepage_madvise would return -EINVAL > when VM_NOHUGEPAGE is set, which will break subsequent chunks of this > patch set. This is a bit skimpy. Why doesn't the patch re-break kvm-on-s390? it would be nice to have a lot more detail here, please. What was the intent of 8e72033f2a48, how this patch retains 8e72033f2a48's behavior, etc. > --- a/arch/s390/mm/pgtable.c > +++ b/arch/s390/mm/pgtable.c > @@ -504,6 +504,9 @@ static int gmap_connect_pgtable(unsigned long address, unsigned long segment, > if (!pmd_present(*pmd) && > __pte_alloc(mm, vma, pmd, vmaddr)) > return -ENOMEM; > + /* large pmds cannot yet be handled */ > + if (pmd_large(*pmd)) > + return -EFAULT; This bit wasn't in 8e72033f2a48. -- 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