From patchwork Tue Aug 15 03:46:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balbir Singh X-Patchwork-Id: 801408 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xWdjr4TrWz9t32 for ; Tue, 15 Aug 2017 13:48:16 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="tHna7FEZ"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3xWdjr3Kc1zDqyy for ; Tue, 15 Aug 2017 13:48:16 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="tHna7FEZ"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-pg0-x244.google.com (mail-pg0-x244.google.com [IPv6:2607:f8b0:400e:c05::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3xWdhC0RxxzDqh1 for ; Tue, 15 Aug 2017 13:46:51 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="tHna7FEZ"; dkim-atps=neutral Received: by mail-pg0-x244.google.com with SMTP id u185so13678128pgb.0 for ; Mon, 14 Aug 2017 20:46:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=r+uRXyYnLhiDoTqLLYWlpyfAu0oAW9Yj2hDx8tdDywM=; b=tHna7FEZ1YVmwsw4W5GPPQK4yZQl3rf3CQgma+NMNGdrPkU9NJmSqPFzdLyA+zFIqR FlMaxzHlPvzRFh9D+J4ax87ZJSStkomS5jKVBR6Ii8qZGZnB0Pbb/R97BRlq2i7OP5fB BuYtHu52mSqHy9kaqN7cycirO/OfTYcsqZpCNjq2eNWwuurTegJdRZB91HmrLjOXUgBM 6HftKkXeC4m97LLZr4gu4NLBNi3OaSe76knH8Jr29+c4IS+HgPVLIiX2cizZ0PgbYTPD LF67+yM0soAN/+fYEdq3mai/lX026upVMp1XF+LviutJJh4rU1C/qIVQoOEDRzOK7taU Rj3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=r+uRXyYnLhiDoTqLLYWlpyfAu0oAW9Yj2hDx8tdDywM=; b=I+5s56A/P1Wk7zZSvsWDaHkQ2E0g0TSKWp4BrAvOEYkHW6V+FpuiKEeTTVjYNhtOTX oe4aa/vx6QFxo5/3DMQnIrZJDXPsRnBySW/T7Rf79zqsoDkaS1n9z9H6xfmUn9aYhOGT 0z3R0W8NGfKq8ps5bLXCSMAkKYOM49s+1j0KK5pXX1w5VZoP9d/TsH3dNm0UugjYvvaT 8FmptRUdgQIDvXc0gAs96Iy3x2Ugsw89cssLlSBx1JzO08hfQBdP4BiDoBaFV5uyOjQW weGeLbC6FGnErO8wez/B7uZ1eADaDNStuLgPT6me+Rapfn4JqMVMfaDKlra4Wweid5ba clDw== X-Gm-Message-State: AHYfb5gc60tA1WjJIUsofyUUW2QoW2BbfRH7GgOe/MyIUVhYBEavNAt/ nlG/TZ4BigMmeP3X X-Received: by 10.98.214.81 with SMTP id r78mr26437231pfg.323.1502768808618; Mon, 14 Aug 2017 20:46:48 -0700 (PDT) Received: from firefly.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id z83sm15450254pfd.10.2017.08.14.20.46.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Aug 2017 20:46:48 -0700 (PDT) From: Balbir Singh To: linuxppc-dev@lists.ozlabs.org, mpe@ellerman.id.au Subject: [PATCH] powerpc/mm/nohash: add definition of PGALLOC_GFP Date: Tue, 15 Aug 2017 13:46:36 +1000 Message-Id: <20170815034636.29898-1-bsingharora@gmail.com> X-Mailer: git-send-email 2.9.4 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" fixes (de3b876 powerpc/mm/book(e)(3s)/64: Add page table accounting) I missed adding PGALLOC_GFP for nohash/64 Reported-by: Michael Ellerman Signed-off-by: Balbir Singh --- arch/powerpc/include/asm/nohash/64/pgalloc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/include/asm/nohash/64/pgalloc.h b/arch/powerpc/include/asm/nohash/64/pgalloc.h index 9721c78..ce1d34e 100644 --- a/arch/powerpc/include/asm/nohash/64/pgalloc.h +++ b/arch/powerpc/include/asm/nohash/64/pgalloc.h @@ -41,6 +41,8 @@ extern struct kmem_cache *pgtable_cache[]; pgtable_cache[(shift) - 1]; \ }) +#define PGALLOC_GFP (GFP_KERNEL | __GFP_NOTRACK | __GFP_ZERO) + static inline pgd_t *pgd_alloc(struct mm_struct *mm) { return kmem_cache_alloc(PGT_CACHE(PGD_INDEX_SIZE),