Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1276073pxf; Fri, 12 Mar 2021 06:17:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJy+xT+GMnH6/nuvoqeowGS6SkHJTruDk76pkiQR5lB+EEotmJ5jSfZcpr9zLJlZi+n5zK2Q X-Received: by 2002:a05:6402:180b:: with SMTP id g11mr14146576edy.195.1615558649215; Fri, 12 Mar 2021 06:17:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615558649; cv=none; d=google.com; s=arc-20160816; b=KvKH6ADh6Uks4/OU9yYNG/ed1JUbRlQMth5FLJ6xenPhn9NLFJjdspaOq5Cf70g2xK EYhK34lzl09dp4PAuh0PpnJddAGUDsYXLLXo+lZLhvlTimL7iotmyHlH9QngucT1Dt6O dY2k8JputUP7Wn9DW8N+jKGcNb15aM7T9gVlVu+Wpl+bsvmYqpFXDUDbaoijO7SW+WcN tF70Z9e6I4xY47zkxSUbWtPID9dTm9wUuAqfBbOmeFFdec5CjgispSkJExiK782U2MuJ oeuwOJ/nyeb1aAtiTuDoTj8xglp5cDUKvWRC8LjskDKRS2iZlDXs+kPvnKD6Rlc/LG9i xSuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=/kDK3cHx8HHyPPMLY5WIFdRT9uLJK4kid8++BSUr9Zs=; b=addaL1g/MHD7p96jAXWyMJrX/o+BSNd+XlSMBmkTH+ohIUnIxNDvd45cleeLOFBSBh GhMip5eMhWSSEpI3kg7Y5nyrFobW6n7Q8rEdeuXLPvhq/AaPaWW01iUgzsXvwd5kbgu8 lApjjjH+PyDUdce0ZOs9czPoAXW9oB7gC7RBwYFfpM9O4+t3YYIvC95/ejrRqoPLzmhH wbvsF65z7vDxq3jYe18XOM/sdL9YmfZGA9vGM5A17jkJBRVaXxK284f/Ma2mxYypK9QK oOy5T5kE4oNqZZ6JDKfTsgN0HF+HtQsqYQs3r3yjIyE2cGBXOHDTlxrom7q2KXS5PMGz DHsQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gz5si4115619ejb.19.2021.03.12.06.16.50; Fri, 12 Mar 2021 06:17:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230388AbhCLOQP (ORCPT + 99 others); Fri, 12 Mar 2021 09:16:15 -0500 Received: from outbound-smtp21.blacknight.com ([81.17.249.41]:35813 "EHLO outbound-smtp21.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229968AbhCLOPv (ORCPT ); Fri, 12 Mar 2021 09:15:51 -0500 Received: from mail.blacknight.com (pemlinmail06.blacknight.ie [81.17.255.152]) by outbound-smtp21.blacknight.com (Postfix) with ESMTPS id CACB4CCAED for ; Fri, 12 Mar 2021 14:15:45 +0000 (GMT) Received: (qmail 20309 invoked from network); 12 Mar 2021 14:15:45 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.22.4]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 12 Mar 2021 14:15:45 -0000 Date: Fri, 12 Mar 2021 14:15:44 +0000 From: Mel Gorman To: Matthew Wilcox Cc: Andrew Morton , Chuck Lever , Jesper Dangaard Brouer , Christoph Hellwig , LKML , Linux-Net , Linux-MM , Linux-NFS Subject: Re: [PATCH 2/5] mm/page_alloc: Add a bulk page allocator Message-ID: <20210312141544.GV3697@techsingularity.net> References: <20210310104618.22750-1-mgorman@techsingularity.net> <20210310104618.22750-3-mgorman@techsingularity.net> <20210312124331.GY3479805@casper.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20210312124331.GY3479805@casper.infradead.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Fri, Mar 12, 2021 at 12:43:31PM +0000, Matthew Wilcox wrote: > On Wed, Mar 10, 2021 at 10:46:15AM +0000, Mel Gorman wrote: > > +int __alloc_pages_bulk_nodemask(gfp_t gfp_mask, int preferred_nid, > > + nodemask_t *nodemask, int nr_pages, > > + struct list_head *list); > > For the next revision, can you ditch the '_nodemask' part of the name? > Andrew just took this patch from me: > Ok, the first three patches are needed from that series. For convenience, I'm going to post the same series with the rest of the patches as a pre-requisite to avoid people having to take patches out of mmotm to test. For review purposes, they can be ignored. > > > > > > @@ -4919,6 +4934,9 @@ static inline bool prepare_alloc_pages(gfp_t gfp_mask, unsigned int order, > > struct alloc_context *ac, gfp_t *alloc_mask, > > unsigned int *alloc_flags) > > { > > + gfp_mask &= gfp_allowed_mask; > > + *alloc_mask = gfp_mask; > > Also I renamed alloc_mask to alloc_gfp. > It then becomes obvious that prepare_alloc_pages does not share the same naming convention as __alloc_pages(). In an effort to keep the naming convention consistent, I updated the patch to also rename gfp_mask to gfp in prepare_alloc_pages. As a complete aside, I don't actually like the gfp name and would have preferred gfp_flags because GFP is just an acronym and the context of the variable is that it's a set of GFP Flags. The mask naming was wrong I admit because it's not a mask but I'm not interested in naming the bike shed :) Thanks for pointing this out early because it would have been a merge headache! -- Mel Gorman SUSE Labs