Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755357AbcCWMth (ORCPT ); Wed, 23 Mar 2016 08:49:37 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:29369 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755244AbcCWMtb (ORCPT ); Wed, 23 Mar 2016 08:49:31 -0400 From: Vaishali Thakkar To: akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, n-horiguchi@ah.jp.nec.com, mike.kravetz@oracle.com, hillf.zj@alibaba-inc.com, mhocko@suse.com, baiyaowei@cmss.chinamobile.com, dingel@linux.vnet.ibm.com, kirill.shutemov@linux.intel.com, dave.hansen@linux.intel.com, paul.gortmaker@windriver.com, catalin.marinas@arm.com, will.deacon@arm.com, cmetcalf@ezchip.com, linux-arm-kernel@lists.infradead.org, james.hogan@imgtec.com, linux-metag@vger.kernel.org, benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, Vaishali Thakkar Subject: [PATCH v2 0/6] mm/hugetlb: Fix commandline parsing behavior for invalid hugepagesize Date: Wed, 23 Mar 2016 17:37:18 +0530 Message-Id: <1458734844-14833-1-git-send-email-vaishali.thakkar@oracle.com> X-Mailer: git-send-email 2.1.4 X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 982 Lines: 29 Current code fails to ignore the 'hugepages=' parameters when unsupported hugepagesize is specified. With this patchset, introduce new architecture independent routine hugetlb_bad_size to handle such command line options. And then call it in architecture specific code. Changes since v1: - Separated different architecture specific changes in different patches - CC'ed all arch maintainers Vaishali Thakkar (6): mm/hugetlb: Introduce hugetlb_bad_size arm64: mm: Use hugetlb_bad_size metag: mm: Use hugetlb_bad_size powerpc: mm: Use hugetlb_bad_size tile: mm: Use hugetlb_bad_size x86: mm: Use hugetlb_bad_size arch/arm64/mm/hugetlbpage.c | 1 + arch/metag/mm/hugetlbpage.c | 1 + arch/powerpc/mm/hugetlbpage.c | 6 ++++-- arch/tile/mm/hugetlbpage.c | 7 ++++++- arch/x86/mm/hugetlbpage.c | 1 + include/linux/hugetlb.h | 1 + mm/hugetlb.c | 14 +++++++++++++- 7 files changed, 27 insertions(+), 4 deletions(-) -- 2.1.4