Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp891760ybt; Tue, 7 Jul 2020 02:52:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyVkeFk0CuVC5rPQtIb7wvBkDHQeTxub1g/8DM2+sbDJjHcCLaDS7soKnfn7om153OnOJM X-Received: by 2002:a05:6402:363:: with SMTP id s3mr48230900edw.238.1594115526780; Tue, 07 Jul 2020 02:52:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594115526; cv=none; d=google.com; s=arc-20160816; b=jcCCltxqWVKIUMB8wDozj+kqoV2DAUwLYpY82fufepUbzBF1UiovSK3rFO7lYQxZEG FeGHz26RUkC5HSEqd+JRcd3jOoQ/phCqTkOVpFOrFlpXt/cvhc94NbPxDNUFE4DfNA+f H+NP4A3lODzp36myeHPrvJ8G4DKVoH8ZeUJaHpFGeGXJZPlX2e2xywH3zXdlVOTDg7Ty B8FUIll41VYHUB7FT4+a78Qcmg4g/9At82hxraFThNL4q3hsQ8rFnbRrwXGlvziZ/a+/ Rpu4zj0a8ULFkKoE6xB6Hq5II6+dR4zqh+cK0IEOn52QYvueMRcG/+u5u/Qi6SbvBCvV j9oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=tZ++aqmsj2zl4qHvd9Lo2RDK99u5Y4/aQpgU/sTY24g=; b=wRM8vX3ZVcz2UPgDaCmELMt0aFgTQS0xadavlK6GSxoJkRBLDOBMyWKIGunjKhboXp ZDl4khtwhm3EBaf9ey57qGCgVS2wLobmawO1heU9+emHiXgSIOANwEIjnzTYNsRleqbP tP+yeP/bqHzzUNCmfsXIYEYUXkoM4+GW3xHnehSS13NvNs3cQ+ONYJIUmZM9v0eBfKnN q7LrM4IbYlSA/+ZD6sl4LUiCu9PdUivgrF4DpjskFGxB8P4nllq49Ca3qumngCS3J9qd xGsu67fr1wQjWDKEo649Jf2BIuT32lN3O3Wjx4L1ArjsVRAtoBCVif4FjiweJZDYyfwo H4Jg== ARC-Authentication-Results: i=1; mx.google.com; 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 d4si12943721ejb.349.2020.07.07.02.51.42; Tue, 07 Jul 2020 02:52:06 -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; 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 S1727116AbgGGJtR (ORCPT + 99 others); Tue, 7 Jul 2020 05:49:17 -0400 Received: from foss.arm.com ([217.140.110.172]:35272 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726745AbgGGJtR (ORCPT ); Tue, 7 Jul 2020 05:49:17 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CA528C0A; Tue, 7 Jul 2020 02:49:16 -0700 (PDT) Received: from [10.163.86.118] (unknown [10.163.86.118]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BA2B63F718; Tue, 7 Jul 2020 02:49:14 -0700 (PDT) Subject: Re: [PATCH] vmalloc: Removing incorrect logs when vmalloc failed To: Tian Tao , akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: linuxarm@huawei.com References: <1594113232-32193-1-git-send-email-tiantao6@hisilicon.com> From: Anshuman Khandual Message-ID: <5e7885ef-081e-0682-7be7-40eb7712d2c7@arm.com> Date: Tue, 7 Jul 2020 15:18:54 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1594113232-32193-1-git-send-email-tiantao6@hisilicon.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/07/2020 02:43 PM, Tian Tao wrote: > It is not possible to increase size with vmalloc= in arm64 > architecture and it will mislead.however vmalloc return failure > is a rare occurrence in 'many architectures including arm64'. But there is a chance that vmalloc() might work on architectures that support 'vmalloc=' command line i.e after a change and this information here might be helpful in those cases. > > Signed-off-by: Tian Tao > --- > mm/vmalloc.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/mm/vmalloc.c b/mm/vmalloc.c > index 89e83d3..c7b5a9a 100644 > --- a/mm/vmalloc.c > +++ b/mm/vmalloc.c > @@ -1238,8 +1238,7 @@ static struct vmap_area *alloc_vmap_area(unsigned long size, > } > > if (!(gfp_mask & __GFP_NOWARN) && printk_ratelimit()) > - pr_warn("vmap allocation for size %lu failed: use vmalloc= to increase size\n", > - size); > + pr_warn("vmap allocation for size %lu failed\n", size); > > kmem_cache_free(vmap_area_cachep, va); > return ERR_PTR(-EBUSY); >