Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3191358pxu; Tue, 15 Dec 2020 00:30:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJzLfaJgv46j0am8QzqNJSARDEtaZINgcFSzHYFF+qp0ngY2+eZQXIdsUkeyv0dzykbdLYBR X-Received: by 2002:a17:906:5386:: with SMTP id g6mr20953610ejo.137.1608021053832; Tue, 15 Dec 2020 00:30:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608021053; cv=none; d=google.com; s=arc-20160816; b=0+HXyohQG4cFO9TM4voTKndlHpn/lyNzBncpEnk7//rCmAdKf1lhtmyBvt7Lq65RUg ZoAP+AtlolNUlO3byWjEFC9fkzHTlBeK72J4RgCXFaMclpGpldAPejn6uOsuRSVm90r9 2Z0+H9xAIhomDIxq1ggZS8v5O9zaPnwwkJjmCVC9rk+A0qfzR53s1+xU3ONE4XPfIgjC Ht4QshGGFeSMv6n2ZWhI5KaNEcRffXiH1d+99heC5Xuts72aoGhodEFRL+sygcaHQZFI mI41SjCGDHgOw4x2mKnFKbRfHNtPauf4bSR9kRGOHKgRN9sf3g2LW+P9f+lLlteuLuw5 NAlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BcRdGe+BwGu/P3zGHntuQl4s/cuwIdbN+JJKDivcwsQ=; b=GBul5yg2qE2UIcItisItBVqPZM/2t3NFZAiJU99yppWuxySnX3FciLZG3LH3NXw3wp e0LmHN2PQKG7ui905rTXVTXGUqmHi1ZzNhhqt7yeh1UKZHFpQxZb55ECMEMo0YVLkwHK QxDc3rjqoHgjDstBj0g9gk8HYPx/wSFb144mH7cteZmD24V4CksFr94243OvFysq709W ianxLF/O+ZcVaL4t8mxV0BeuEb2hBFvkmHLWiFQhlghy9M08ddFnwjJP1WjmTEoej2y4 JWKAnwJU9mO/nM84t7v8ZC+x7UcL2/emL2HtYiVBU10s8Q8h1RpoULZLx2TBmX/C787f kOPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=ohfCrHHg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v7si463910edi.511.2020.12.15.00.30.30; Tue, 15 Dec 2020 00:30:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=ohfCrHHg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727059AbgLOI2g (ORCPT + 99 others); Tue, 15 Dec 2020 03:28:36 -0500 Received: from mx2.suse.de ([195.135.220.15]:43338 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726771AbgLOI2f (ORCPT ); Tue, 15 Dec 2020 03:28:35 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1608020869; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=BcRdGe+BwGu/P3zGHntuQl4s/cuwIdbN+JJKDivcwsQ=; b=ohfCrHHgr2quArA8JO/yaH5tWvtHs2Q3srZkxnSQgMo48bWJHDBsV4sl+7x0dsQVvSJncz NcfvPc7q0OMQKQOqgg8+bHPdyfXQgmhA5NpGAJ+TYiEV+xceNyQrEJI7eJv5nKmyokN2PH 0y+JLdG0ud3+p17jlhJ9WWGTPpdTag0= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id CA69AAC7F; Tue, 15 Dec 2020 08:27:48 +0000 (UTC) Date: Tue, 15 Dec 2020 09:27:48 +0100 From: Michal Hocko To: Pavel Tatashin Cc: LKML , linux-mm , Andrew Morton , Vlastimil Babka , David Hildenbrand , Oscar Salvador , Dan Williams , Sasha Levin , Tyler Hicks , Joonsoo Kim , mike.kravetz@oracle.com, Steven Rostedt , Ingo Molnar , Jason Gunthorpe , Peter Zijlstra , Mel Gorman , Matthew Wilcox , David Rientjes , John Hubbard , Linux Doc Mailing List Subject: Re: [PATCH v3 4/6] mm: honor PF_MEMALLOC_PIN for all movable pages Message-ID: <20201215082748.GL32193@dhcp22.suse.cz> References: <20201211202140.396852-1-pasha.tatashin@soleen.com> <20201211202140.396852-5-pasha.tatashin@soleen.com> <20201214141715.GF32193@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 15-12-20 00:24:30, Pavel Tatashin wrote: > On Mon, Dec 14, 2020 at 9:17 AM Michal Hocko wrote: > > > > On Fri 11-12-20 15:21:38, Pavel Tatashin wrote: > > [...] > > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > > > index c2dea9ad0e98..4d8e7f801c66 100644 > > > --- a/mm/page_alloc.c > > > +++ b/mm/page_alloc.c > > > @@ -3802,16 +3802,12 @@ alloc_flags_nofragment(struct zone *zone, gfp_t gfp_mask) > > > return alloc_flags; > > > } > > > > > > -static inline unsigned int current_alloc_flags(gfp_t gfp_mask, > > > - unsigned int alloc_flags) > > > +static inline unsigned int cma_alloc_flags(gfp_t gfp_mask, > > > + unsigned int alloc_flags) > > > > Do you have any strong reason to rename? Even though the current > > Yes :) > > > implementation only does something for cma I do not think this is all > > that important. The naming nicely fits with current_gfp_context so I > > would stick with it. > > I am renaming because current->flags is removed from this function, > therefore keeping the name > becomes misleading. This function only addresses cma flag check > without looking at the thread local state now. Fair enough. I still dislike cma being called out explicitly because that is slightly misleading as well. gpf_to_alloc_flags would be more explicit I believe. But I do not want to bikeshed this to death. -- Michal Hocko SUSE Labs