Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp447239rwe; Thu, 1 Sep 2022 02:09:49 -0700 (PDT) X-Google-Smtp-Source: AA6agR7jHa157TJGLA2qNKryD5YmDHa0Ljst4Dx0bcSyiS4jQLgOgD2va3BArEm8/72FYpWAk7/X X-Received: by 2002:a65:664a:0:b0:42b:6090:9618 with SMTP id z10-20020a65664a000000b0042b60909618mr25035989pgv.22.1662023389386; Thu, 01 Sep 2022 02:09:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662023389; cv=none; d=google.com; s=arc-20160816; b=voqFUdKgATVo0tOoieB+e08mMUpg8OtN9CD8ytxeImJtIMrJL131Yh71LkaQ7U0qpd K9beBVVFTibpFeQzm0J/Va+w3Ef/IOwaGo2y9VaV6fSxb4v0jLsyOB8SUPcjBnV4M45F fAon1DXYEfhr13HfAIh4wsW5IwaDcmDDKeGGoepSRtWsAdNhe06+ahVDEvaq6nm24ait PHyKjvoIjRps1y93eavpLMuydGmTGygmlvVjRWi5QDEA5tgEl9zFDn2rV6eN/2K1BMI6 ptgFO5UNNsE5OA4wYXSngVXzBMNPpn8z4RCf/W7NUzy1mOBfViLQ9S22FsLZmrhnPqcA k8Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=iXmlJre99+c8LwVN4CMddygc9CwO2+Mn75pvp3yEQac=; b=nBI2Om+13wiwLgQDA05YQf1A2qXPhzQt+LF4mL1ZJoBu6pkPObwMg9nssbKEscdsK8 TtFjPK9OijGQmhI0GbIksgGqu5Kr3QqBZj7gGHzaGdjm7ol0Cz2TO8YqdUsuawx1Bm9O oM5aDHdBLnCSyXkoyiuB2nRJUEq1NWHVmwjVNjrEV6xD63cScfXbmC7jz+VYRw8iYNmV WLxTYiL/DPR09AfbuLz5BL0ExuuU7oOYC9ZKp5F4Lvo8uF6c9KGxfRYJ7VxiqhMmRdkj hkUQN18cUpLsvvh5ngBCe6eE0AKiquvp02K9PKkKJzpp5mWH0tZ8st6WZCpKDRnb3qpC h9uA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t2-20020a170902bc4200b0017278771a40si3230342plz.186.2022.09.01.02.09.37; Thu, 01 Sep 2022 02:09:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233599AbiIAIAk (ORCPT + 99 others); Thu, 1 Sep 2022 04:00:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233562AbiIAIAb (ORCPT ); Thu, 1 Sep 2022 04:00:31 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DA2449B5E for ; Thu, 1 Sep 2022 01:00:29 -0700 (PDT) Received: from dggpemm500022.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MJCz65KDgzYcyj; Thu, 1 Sep 2022 15:56:02 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggpemm500022.china.huawei.com (7.185.36.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 1 Sep 2022 16:00:27 +0800 Received: from [10.174.177.243] (10.174.177.243) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 1 Sep 2022 16:00:26 +0800 Message-ID: <584e63c2-2574-ea2b-55c4-da5e2cd08868@huawei.com> Date: Thu, 1 Sep 2022 16:00:26 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH] mm: remove BUG_ON() in __isolate_free_page() Content-Language: en-US To: David Hildenbrand , Andrew Morton , CC: References: <20220901015043.189276-1-wangkefeng.wang@huawei.com> From: Kefeng Wang In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.177.243] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/9/1 15:37, David Hildenbrand wrote: > On 01.09.22 03:50, Kefeng Wang wrote: >> Drop unneed comment and blank, adjust the variable, and the most >> important is to delete BUG_ON(). The page passed is always buddy >> page into __isolate_free_page() from compaction, page_isolation >> and page_reporting, and the caller also check the return, BUG_ON() >> is a too drastic measure, remove it. > Why not WARN_ON_ONCE then? But yeah, maybe this really isn't of any > value anymore. or VM_WARN_ON(), but I think this bug_on is useless after check all calllers, so let's drop it if no objection.