Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1835156imu; Sat, 12 Jan 2019 08:44:14 -0800 (PST) X-Google-Smtp-Source: ALg8bN7SOYER6DJF6TwmLzDeVNWSQfOdDPduxLCiF9Af8SQhkcx3s7Zb7mfIww1uRtR9sc8lZzfx X-Received: by 2002:a63:20e:: with SMTP id 14mr15091734pgc.161.1547311454919; Sat, 12 Jan 2019 08:44:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547311454; cv=none; d=google.com; s=arc-20160816; b=lvwbd+K5/GS+twDxhN4nOIPlnz9BSSiLDfwiKCP++BigGxbkqy0A3/S1q3sggxZYtc nGqNmFJL+SCLvCK0ZoM/RYLaH21e71QCfj0N7TjcIqo5c+ZeP/t3lKA83ds0/E9xzQhJ 6GoZBXE5936FAn9aIzuQVE80SnAS6wo4AQfHP8I5iOXZ5SHe7goawBiZ/RPhFg4iAi4J PO3eTzPjnRKw4y4ddppZRzkbbfuUJ/eU4iFpS4g0uEtITrCDr7wbnyo7VGlXUZ6KPWKN hg0+In+XKRUNwT7ys0JqvErqs84DLQ8z7RgT/9MyJskOI116vJc856Mvel7s5xYZGm4Q isyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=E5jeThNuXJiosx7Bk1oeBAmKTo11eywDu/ykXx4V/zo=; b=k7jTBM5aW3shaw/i4bTNXP3G6z2oLpmL7Olc1fPiVnKH++ldmhUaGIv+Z62AomvoYU zN6b/cbybRn+WA+Pu1RHro5k3yVpYr9WSvES4mzZb4gPik15FBXpnXeQ1yAwYb02oaTb fzN4sMa4pq9pKfxWQ5jXoX4c14BAjT8qXdhehvRhQ4kBiM9134gyB7NzCTeJZG1Y/Op5 tlSV/GvpkA5yI7si49kYHgNRb7bTnp/WvmN8KGFjJXNX5jzgfLEyH5xkDS3Vrthya25E 4Y1ZfaBE2Elhf6DYjmldGUf7AGnWO0edpe+8iQGHr3H/ZX9Apx/QcDaQHnfUi1bIKfOw zJPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=rccc7BFO; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l5si9988470pls.423.2019.01.12.08.43.34; Sat, 12 Jan 2019 08:44:14 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=rccc7BFO; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725857AbfALPt4 (ORCPT + 99 others); Sat, 12 Jan 2019 10:49:56 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:40298 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725831AbfALPtz (ORCPT ); Sat, 12 Jan 2019 10:49:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=E5jeThNuXJiosx7Bk1oeBAmKTo11eywDu/ykXx4V/zo=; b=rccc7BFOuB4X/7wNfKDBViyyw tCIq00thjE8uBpRc2EMKCYg5Pjp4pL5OD8AkcjqW5KJKQYIqo0djjpzork/c108Trm/6QyapyO3DC hU7wELBi+gG1L1fDiiyok/NRypETF5628z9SQ0EAS7cNcGp3EUvUu864qCBeiplTY1rTPwtjPS0Fp 2lhX45+RO4vzvcTo/lAzPKzmJ8xOYJe54ylsedrg2VIUSKglaC1737qr31qWSqgl8CW0YCdM5D9R1 dzSpWXEq2u0NZuZtlrmd9FIUNx8PQQpuI6MgJo/7FEp0Vp67At7crqTQ9StU23rHHuNQEIaLpjgiM RcF5Bo9Ng==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1giLXc-0000SR-TQ; Sat, 12 Jan 2019 15:49:44 +0000 Date: Sat, 12 Jan 2019 07:49:44 -0800 From: Matthew Wilcox To: Christophe Leroy Cc: Anshuman Khandual , mark.rutland@arm.com, mhocko@suse.com, linux-sh@vger.kernel.org, peterz@infradead.org, catalin.marinas@arm.com, dave.hansen@linux.intel.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, kvmarm@lists.cs.columbia.edu, linux@armlinux.org.uk, mingo@redhat.com, vbabka@suse.cz, rientjes@google.com, marc.zyngier@arm.com, rppt@linux.vnet.ibm.com, shakeelb@google.com, kirill@shutemov.name, tglx@linutronix.de, 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, akpm@linux-foundation.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] mm: Introduce GFP_PGTABLE Message-ID: <20190112154944.GT6310@bombadil.infradead.org> References: <1547288798-10243-1-git-send-email-anshuman.khandual@arm.com> <20190112121230.GQ6310@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) 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 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.