Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1876033imu; Sat, 12 Jan 2019 09:35:59 -0800 (PST) X-Google-Smtp-Source: ALg8bN4yzn+Zm2U5n6UNycUObBoUnrZjQo9Xub+oLAyVR+9sPW8jEokP/duC7GG/1u6r+yRIDNXJ X-Received: by 2002:a63:6704:: with SMTP id b4mr17560704pgc.100.1547314559689; Sat, 12 Jan 2019 09:35:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547314559; cv=none; d=google.com; s=arc-20160816; b=vP0JgCceVW/Ah/iSGSK9fLpdShHZMSwdKMu504PqIs2bS4bqzHNEa7n/c9rorN11ZM 9cGlheoV9tfwYr57j3D+GagVnsGsyeNP3idU/mIWE0z02tJUIKJCoB1Q9l0cDAdMgyda iw10ZFp4V8NqRu8zdXP2Q1GV1Fe07Oa6HeZdvv6ckX4W9bzRdWpSqC7/9LthZnr/5Ail uvY6QB3GYJ1BignpACBYVqtU5nzEcv1MK647NPH8MqOvNY92+SZtwPBeFWr0xRCcDa25 uM6HIScR2YPms68QPsVzseBPpK2SwnJeKW8NxXVTdS4wX21D0suR8T+JBKqIOTdFaiIY wg/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=VaO7ZxXFClP1+k1Rrf7irHfcf76KrsN+FQv9UEeh0gk=; b=I0C0JrZgEuS6mLW24Fy7vAI1qQ7U43RWMGoen1m5SSgZz/3XsCEttAoix2hDO7r5HF roWGE1VyOwdlPxyBi5Cx/8VEgkU7vGk+SRPzGjIVCQYr0De8Qnp3umE8l6cZgzHI7PaT UJqvTcRPErJSR/TWIb1mmaXpIDn0j7XUlJ+IkRV42DzW8HjPXqbh0u7buLszmKwY3i1i bOeDemPw0ArL/Mq71ItKvtb6agTkwKEw4N8THyk/MlJp56yvltWlipKkqCM+c5pOjvWV ZReDScw9vUXuSMgLMdDkRc/cgH2YtPeEILHCc/aAj4rUfAppcqj2vkfrDKOI1ErwO33u A5Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=t05Y81Bu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i33si10436358pld.329.2019.01.12.09.35.43; Sat, 12 Jan 2019 09:35:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=t05Y81Bu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726418AbfALQuy (ORCPT + 99 others); Sat, 12 Jan 2019 11:50:54 -0500 Received: from mail-yw1-f65.google.com ([209.85.161.65]:33409 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725853AbfALQuy (ORCPT ); Sat, 12 Jan 2019 11:50:54 -0500 Received: by mail-yw1-f65.google.com with SMTP id p65so7071390ywe.0 for ; Sat, 12 Jan 2019 08:50:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VaO7ZxXFClP1+k1Rrf7irHfcf76KrsN+FQv9UEeh0gk=; b=t05Y81BuMZSuJ3Qf03/s29f5cEJAeohwbr5hZJc2RrcPRO6eHvSCEwsoBZ8TncZdL9 PmSFv57lPf98jmd7DJUXckoKesFwgGPp40VY4Gblne/wQyqG/r/MqToljc9zsCz0qxKp aRnm5M1tt5gMo/vHEU2zJp8W2o3GF8OgA4ajXs0FGG40PWe6hFw+ca4OkI60pLBD3kWB 2n2BGWP7tzRyD26c8OTdhD2D0L1F4/eMN6vCzDo06ugdYINGlLUAp76YatbfknmKYRpH RxNfLgU6S5LVmaxnqLCcIX5XK4x4ZS2dNEqHJe3KNImCAkYzyXEhDG7xdyu1Mm9rEMYB k3cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VaO7ZxXFClP1+k1Rrf7irHfcf76KrsN+FQv9UEeh0gk=; b=DPTwpFXYJAc5SO4qcBcUlnc3qEBBRMlXLD1Tvw3x8EQE5tyhORSOu70+AqCI0JFQaf I6cSZIFlPcAIbp1WBwT+6eID+KgBfozxV8F7nj9hHYmUZBFjO/4EbdcSczRCRvzfmbjh Fv6K7ewYM/XvVbuRX7bxt2PCN46XujVU+bez37JUttZdgJAh3amdphZ+scNxGXgSjhwq WiGkaD8Dnhl4rc3KWktpA6cFEXAnVM5vRGPF1sZ7BXSRDnsYnKnm1uPAWPFdQedUoGwQ d/RCIv9MdX2J2tOQrQK+1GhLKuc68o1wl1g5ILpZ2wDddtEy5BOolhOyweh0q7v5SoVl 2iEQ== X-Gm-Message-State: AJcUukdt5ZiQtceVwj2Opgafey0kClRy8DcK2fFvwOnbBV7M/9pcFBl5 ByM/g6fquWRqw65fISsH0e7nIUJDClaskpEBYVcdDw== X-Received: by 2002:a81:60c4:: with SMTP id u187mr18077076ywb.345.1547311853069; Sat, 12 Jan 2019 08:50:53 -0800 (PST) MIME-Version: 1.0 References: <1547288798-10243-1-git-send-email-anshuman.khandual@arm.com> <20190112121230.GQ6310@bombadil.infradead.org> <20190112154944.GT6310@bombadil.infradead.org> In-Reply-To: <20190112154944.GT6310@bombadil.infradead.org> From: Shakeel Butt Date: Sat, 12 Jan 2019 08:50:42 -0800 Message-ID: Subject: Re: [PATCH] mm: Introduce GFP_PGTABLE To: Matthew Wilcox Cc: Christophe Leroy , Anshuman Khandual , mark.rutland@arm.com, Michal Hocko , linux-sh@vger.kernel.org, peterz@infradead.org, catalin.marinas@arm.com, Dave Hansen , will.deacon@arm.com, LKML , Linux MM , kvmarm@lists.cs.columbia.edu, linux@armlinux.org.uk, Ingo Molnar , Vlastimil Babka , David Rientjes , marc.zyngier@arm.com, Mike Rapoport , "Kirill A. Shutemov" , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, ard.biesheuvel@linaro.org, robin.murphy@arm.com, steve.capper@arm.com, christoffer.dall@arm.com, james.morse@arm.com, aneesh.kumar@linux.ibm.com, Andrew Morton , linuxppc-dev@lists.ozlabs.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 12, 2019 at 7:50 AM Matthew Wilcox wrote: > > On Sat, Jan 12, 2019 at 02:49:29PM +0100, Christophe Leroy wrote: > > As far as I can see, > > > > #define GFP_KERNEL_ACCOUNT (GFP_KERNEL | __GFP_ACCOUNT) > > > > So what's the difference between: > > > > (GFP_KERNEL_ACCOUNT | __GFP_ZERO) & ~__GFP_ACCOUNT > > > > and > > > > (GFP_KERNEL | __GFP_ZERO) & ~__GFP_ACCOUNT > > Nothing. But there's a huge difference in the other parts of that same > file where GFP_ACCOUNT is _not_ used. > > I think this unification is too small to bother with. Something I've > had on my todo list for some time and have not done anything about > is to actually unify all of the architecture pte/pmd/... allocations. > There are tricks some architectures use that others would benefit from. Can you explain a bit more on this? If this is too low priority on your todo list then maybe me or someone else can pick that up. Shakeel