From patchwork Mon Mar 14 17:50:49 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prasad Joshi X-Patchwork-Id: 633971 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2EHopYk022580 for ; Mon, 14 Mar 2011 17:50:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752348Ab1CNRuv (ORCPT ); Mon, 14 Mar 2011 13:50:51 -0400 Received: from mail-qy0-f181.google.com ([209.85.216.181]:61116 "EHLO mail-qy0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751249Ab1CNRuu (ORCPT ); Mon, 14 Mar 2011 13:50:50 -0400 Received: by qyg14 with SMTP id 14so4588027qyg.19 for ; Mon, 14 Mar 2011 10:50:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=/MCZrvCIx3U7hq23rP7jhnCHF1OJsMocEELta/xD67o=; b=N7OV6mUdDGyeetAVuNM/M7UMLVXfjhxsSTV4x6fZvQrBqFIW45op4pQbd2s3VyIOlA iORhT08PCf/cYp/iMpA4wxz35cMdr46JLn93bDnEeVT6mmyxwIJiLEtsel+XI57E1rbE wC+rmRQYNdmV3q3LqFZFCgWwtbm8ALxldOuj0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=mXss1wApLGpnZ4hjVVxGLw10rMPYPw2vz4D5XI2R5leQRPlMDU5sFyhzO/tGMCOq09 ZpLutngGzuzTG+e1h1ujMEoUKinrJVIpclMznt5yqGUq3n4A42LuEfIkmV426UBFY/eB J0dyLz+/3kL7YzZvLQG9MxxctUm0bSjSaEviw= MIME-Version: 1.0 Received: by 10.229.48.84 with SMTP id q20mr10320215qcf.131.1300125049837; Mon, 14 Mar 2011 10:50:49 -0700 (PDT) Received: by 10.229.99.68 with HTTP; Mon, 14 Mar 2011 10:50:49 -0700 (PDT) Date: Mon, 14 Mar 2011 17:50:49 +0000 Message-ID: Subject: [RFC][PATCH v2 12/23] (parisc) __vmalloc: add gfp flags variant of pte and pmd allocation From: Prasad Joshi To: Prasad Joshi , Anand Mitra , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, Kyle McMartin , Helge Deller , "James E.J. Bottomley" , linux-parisc@vger.kernel.org Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 14 Mar 2011 17:50:52 +0000 (UTC) diff --git a/arch/parisc/include/asm/pgalloc.h b/arch/parisc/include/asm/pgalloc.h index fc987a1..0284a43 100644 --- a/arch/parisc/include/asm/pgalloc.h +++ b/arch/parisc/include/asm/pgalloc.h @@ -61,15 +61,20 @@ static inline void pgd_populate(struct mm_struct *mm, pgd_t *pgd, pmd_t *pmd) (__u32)(__pa((unsigned long)pmd) >> PxD_VALUE_SHIFT)); } -static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) +static inline pmd_t * +__pmd_alloc_one(struct mm_struct *mm, unsigned long address, gfp_t gfp_mask) { - pmd_t *pmd = (pmd_t *)__get_free_pages(GFP_KERNEL|__GFP_REPEAT, - PMD_ORDER); + pmd_t *pmd = (pmd_t *)__get_free_pages(gfp_mask, PMD_ORDER); if (pmd) memset(pmd, 0, PAGE_SIZE<