Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3196250pxv; Sun, 25 Jul 2021 20:27:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxybwwBJF4Kg6dLg84fbTDWbhAOgMdFY/jHyKUGD0OKL7hO60r93C/PtQt6Ydho24RLOt3y X-Received: by 2002:a5d:8994:: with SMTP id m20mr12919599iol.117.1627270028566; Sun, 25 Jul 2021 20:27:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627270028; cv=none; d=google.com; s=arc-20160816; b=uUbr9i0IzstfRpp3wVwww6BdpqwrrAHx1a1M+xHBjolvk89hupZVSwmpI7dYPTPXOi R4dABpQ4ZKaYfQjgGG/cz78DuU+1Rz6j/eZ7km4se97MOdv7n/mtd0lHniLJcVaAhADA TSXmo67AQroQqvLSJEcMQImBZP4g21G+IvaqtqbcBxm5Kxo/BlbEe/8VaNduzsCs0PSA T7aQmHU3Zbr56TzvY88Wp5RomJ/82pdn2hrDEoKPgXtedHLL1HrSAKwZZ9xl8QTN0wNR Uq1cBfuI4vFJ0sjwgqLWZMfls6oOIa0XPtQ2RGs1ZmaSjA9JCNMEwYEMc8J3GaAGJUWt 0eGw== 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=RAkBaJcAPELwC1B8vW73sx7vizUe93GJAbJNf3OG52M=; b=amWDLeohy3sH8V8SBnEyltEASztiGu3EHaCB0YY0QpBiz52iVr2yHxGOsm7M9o87H3 zB45DjKt2f9BxAQGx2HqsSbEkDynzLchiWyFj5XRRAvpM296gXwFX2hhKVomJjN3FpDv 4GU30yEBXO4U3NvbiDKAZ0qg8xPu7ungBYGNxw5dxVF5DamendYLHds5RhaygBFpKpAh O6po2av4CsilQxi7nTImE2pd5YhXSuGF0Zo/dxniJyLpvRikJ49zlYWyjP+j5Irqa0ZP C866RnJVkoerR5Au7kUMNYR4jp/1AYI34SlMejq4DaTiOekFpVA36cdzaDcIa1likUN7 Sx3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=VMhfcOen; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x1si7647669ilp.101.2021.07.25.20.26.56; Sun, 25 Jul 2021 20:27:08 -0700 (PDT) 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=@infradead.org header.s=casper.20170209 header.b=VMhfcOen; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231207AbhGZCpn (ORCPT + 99 others); Sun, 25 Jul 2021 22:45:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230272AbhGZCpm (ORCPT ); Sun, 25 Jul 2021 22:45:42 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 046CEC061757 for ; Sun, 25 Jul 2021 20:26:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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; bh=RAkBaJcAPELwC1B8vW73sx7vizUe93GJAbJNf3OG52M=; b=VMhfcOenwLocwQgQFJRBi6pOF6 UDsA1qkO06DXplKF1DK1+mmux5fNS0BbB+g/1x5Tjn+Jdd+/rxEIx5FM+5PVR4StyB0Ht8B0X0IQB uLZOOHhtbtneM6GDfaHeHHyWTaDMR7IhluBwJkh01zAEUhXKmUiUJ0r3b72gYz018sbPFKsZad3J5 hAWyOWY5DgMF+5TjOe6zkib+Q7r4LcfWxustvpsXI82S064qpDfUBapEGXc0OQY9FJeO2IECz4g+o cNHFz9KyURgqwAZjPQZkAwLJEdmbJx+4rlOQlCesQqFOpMGloYeVuRstkEOz9SIZeZVNhsUPP/tDX 5o2GuvQg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1m7rFL-00DYm4-34; Mon, 26 Jul 2021 03:25:42 +0000 Date: Mon, 26 Jul 2021 04:25:39 +0100 From: Matthew Wilcox To: Chen Wandun Cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, wangkefeng.wang@huawei.com, weiyongjun1@huawei.com Subject: Re: [PATCH] mm/vmalloc: add missing __GFP_HIGHMEM flag for vmalloc Message-ID: References: <20210726032333.3404164-1-chenwandun@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210726032333.3404164-1-chenwandun@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 26, 2021 at 11:23:33AM +0800, Chen Wandun wrote: > struct page array can also be allocated in highmem during vmalloc, > that will ease the low memory stress in 32bit system. Huh? Where does it get kmapped in order to access it? > Fixes: f255935b9767 ("mm: cleanup the gfp_mask handling in __vmalloc_area_node") > Signed-off-by: Chen Wandun > --- > mm/vmalloc.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/mm/vmalloc.c b/mm/vmalloc.c > index 3824dc16ce1c..8d9b0b08a6dc 100644 > --- a/mm/vmalloc.c > +++ b/mm/vmalloc.c > @@ -2885,7 +2885,8 @@ static void *__vmalloc_area_node(struct vm_struct *area, gfp_t gfp_mask, > > /* Please note that the recursion is strictly bounded. */ > if (array_size > PAGE_SIZE) { > - area->pages = __vmalloc_node(array_size, 1, nested_gfp, node, > + area->pages = __vmalloc_node(array_size, 1, > + nested_gfp | __GFP_HIGHMEM, node, > area->caller); > } else { > area->pages = kmalloc_node(array_size, nested_gfp, node); > -- > 2.25.1 > >