Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3640601pxb; Mon, 30 Aug 2021 07:14:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzY1qbcyHCD5ehJzHHM8hNhA5NVLjTKVn82T3sj6/toJpRMWd5eX2ANL4Oa82+qXiG6DKIk X-Received: by 2002:a17:906:74d:: with SMTP id z13mr25460327ejb.127.1630332899619; Mon, 30 Aug 2021 07:14:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630332899; cv=none; d=google.com; s=arc-20160816; b=zMQ5GeYaTQFq60BpbHySN99CcCpcbo0H9X8yx+aJDxwIXYPjduEzvI/dKWOOXHdZGP WIG9ewosszsQWWePXzGw/YIdtOofmiWKPZih3BWAN3m4jl8IiBw4jZxKp2ME1lftAEfw b6a6E0qgT8i6jPx4jn7pAgPGQul9lxfEbvYE+CYn6mXT8TcvHPMg9VMFZO7JQt2O8/0T G+9KFkH1IqnO1WTq7dWaUQEy1+VAnDpzBnfq/AoAUtMc/bbxecLEeZ3E8KPaMG2WOXj0 1HCPlC9/YAg+wKl06+If3qeOePzMK3TIJixRLq61SB5MqxgMTXKiYvlCyLHgYaOcg8Xo yGGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=XI39cfMs3uw7jU3/pJ1h3ztgQiA+uJo16rv+N1Fk6Lg=; b=xb6N9BhX+64bQHL1bDjq3MRjQ9SShO3TsHUnVEryzp4/QpxlyNj/fHOBpf9ZwHxylO T4D8KMPWLsQ3K77ClveU2DvVfMDnubf3xNw2rDDaAW1QMy5xOGYtPsF6SpAz+QXK7x8Q A7JlzsGH6SLh4yt/aDADnoBkKNiD7iWZ8GppTo7+vZVcLkKAVRMUwhUZ1SKSnY6l7j5A H6wQylBaE8SNU5vh8HygIOuB0YGPNeTXVp+rydYO0D0pMVc5U7R6T8CdTpuFhGGnmA5V 5IxR9/zZnxJbq7bJjRgnBjxQdDV7G0FPdUI4LRy+keNiqrUGyixS/vfyMk7UETtbCCIO ztAA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x6si15098877eds.591.2021.08.30.07.14.26; Mon, 30 Aug 2021 07:14:59 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237061AbhH3OLb (ORCPT + 99 others); Mon, 30 Aug 2021 10:11:31 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:15272 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236822AbhH3OLS (ORCPT ); Mon, 30 Aug 2021 10:11:18 -0400 Received: from dggeme703-chm.china.huawei.com (unknown [172.30.72.56]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4Gysf13Zp3z7tbF; Mon, 30 Aug 2021 22:10:01 +0800 (CST) Received: from huawei.com (10.175.124.27) by dggeme703-chm.china.huawei.com (10.1.199.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.8; Mon, 30 Aug 2021 22:10:21 +0800 From: Miaohe Lin To: CC: , , , , , , Subject: [PATCH 1/6] mm/page_alloc.c: remove meaningless VM_BUG_ON() in pindex_to_order() Date: Mon, 30 Aug 2021 22:10:46 +0800 Message-ID: <20210830141051.64090-2-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20210830141051.64090-1-linmiaohe@huawei.com> References: <20210830141051.64090-1-linmiaohe@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggeme703-chm.china.huawei.com (10.1.199.99) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It's meaningless to VM_BUG_ON() order != pageblock_order just after setting order to pageblock_order. Remove it. Signed-off-by: Miaohe Lin --- mm/page_alloc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 91edb930b8ab..dbb3338d9287 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -677,10 +677,8 @@ static inline int pindex_to_order(unsigned int pindex) int order = pindex / MIGRATE_PCPTYPES; #ifdef CONFIG_TRANSPARENT_HUGEPAGE - if (order > PAGE_ALLOC_COSTLY_ORDER) { + if (order > PAGE_ALLOC_COSTLY_ORDER) order = pageblock_order; - VM_BUG_ON(order != pageblock_order); - } #else VM_BUG_ON(order > PAGE_ALLOC_COSTLY_ORDER); #endif -- 2.23.0