Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1014460ybt; Wed, 8 Jul 2020 18:17:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyG5OD0gNzK/7T3JV4X2ZKXLMmo+UcGtFuV2DMDWZ89mXkr9YSj9Qcffnk0yU3T2LkFcbe X-Received: by 2002:a17:907:72cf:: with SMTP id du15mr52508087ejc.151.1594257430757; Wed, 08 Jul 2020 18:17:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594257430; cv=none; d=google.com; s=arc-20160816; b=ds90xLL4VffTudnBXuO1YWrWS7Fj4KxZH1C4mnH4llvxJgIKLCnTMtFFY31dhJWA27 YCQiEYfKwGTwwC9f7EnvgSbOo5Vq9Gc1/HkNG0LSim1eZQa4aYztdsaKIMyXn+bPzpaY 73nT7/4aHct0PcseT92LSwUXpBP1I7cX7PxtEzDLWRgIjP0kVUKnNwNSQV/eOjIg+0tf +65IdT3qCyg4/QzF9Nl8LdmXDRuv0XmWS/cSRbd3LiNDa2VkRmtSCIfpe8+nZsFS+85J VJE7r59Vh2RvrWC3OIiZL+zzsGLH+QozAiU+p+0E5nWHsHeJToUT02qA6BdOwoW12zaC I7XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=LYoF3BzEhPlV5tIU1qoAsqvJU4+DT/3ZTbcSyr0srFo=; b=rp/3tc2Ssn/Ll1IiNdFORGNbyeAbtqFiV6/MWK9SlkKnRJGrBjwdjIG9U+jCAjZSo+ no1KjYexsfxhzWobhJJ3w+EtrzH8yDHe/M5wx+IXdE+7CEKToAxtUUranuZcuieVKFkJ qHnCOtUoek5Jo9woSMC9HmOPVozlQqW3daMjnyZ9J6VTNyxcgl8jHnyQxGhqnN1W9NNr /qlp4Oty257wODq7u/Cl2mkY5meCKDvtSAcrF8J5sYXOh0v0AVbePH9X9zCkG3EGUeTl A2BoMHIjL/Bzr9GPjgIub3mE6+vVw/aETp2pHuTIfQ31VYol6LIRhPDGKNJ6rlJUgHpe Epjg== 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 d3si1166407edn.145.2020.07.08.18.16.47; Wed, 08 Jul 2020 18:17:10 -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 S1726187AbgGIBQi (ORCPT + 99 others); Wed, 8 Jul 2020 21:16:38 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:7823 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726082AbgGIBQi (ORCPT ); Wed, 8 Jul 2020 21:16:38 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 0779F59593B19B965EFF; Thu, 9 Jul 2020 09:16:36 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Thu, 9 Jul 2020 09:16:28 +0800 From: Tian Tao To: , , CC: Subject: [PATCH v2] vmalloc: Removing incorrect logs when vmalloc failed Date: Thu, 9 Jul 2020 09:14:48 +0800 Message-ID: <1594257288-58269-1-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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'. Signed-off-by: Tian Tao v2: Add appropriate hints and let users decide if they can increase the size of the vmalloc by vmalloc= depending on their platform --- mm/vmalloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 89e83d3..c6ae7e6 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -1238,8 +1238,8 @@ 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: use vmalloc= to increase size, + if your ARCH supports it\n", size); kmem_cache_free(vmap_area_cachep, va); return ERR_PTR(-EBUSY); -- 2.7.4