Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp282074imn; Thu, 4 Aug 2022 05:57:55 -0700 (PDT) X-Google-Smtp-Source: AA6agR7Ts4VKX1p2df5KuI5y5goryIynIcsIifUhvD/O6VIp1Y4/lHJipwefipRWEcNtnK57YxAG X-Received: by 2002:a17:907:2c68:b0:730:9272:8c7f with SMTP id ib8-20020a1709072c6800b0073092728c7fmr1374815ejc.528.1659617875587; Thu, 04 Aug 2022 05:57:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659617875; cv=none; d=google.com; s=arc-20160816; b=UaYTLZfd2b47A9HcmIAqL1eYW5etpFR416ucECPXbtNlxyPgCqggvG+k0v2RhnoOp9 Q0PPZSeW/uUILQ3UyyVE2t/U1ZXQNeb2AeZAwpgu6feqLTVyurXJbPlZyd9FBqhSOZSz PRlQha3HEmbCkYPVvfGvLYro68MvLJH7Z7YsDpnsCyZuDJqS6ChduPI7JpCSO2oXbKLK 65LdAg6OvOP2hI6BGGBVmhL84dnIxqatzdr0BTlyw8ZHXE146Jsn9QMQvZOXwlPRAlwD PUXyxWNE+rah9UyR12Z38TdjVrdNfIbHE0iRgAsr56mx6Y2jmfKAU+KuRTQry02jX5nD osEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=45tUdafWHtLESPVP23AGG46uCwozZpGkxKtbdhEIB+U=; b=lisvkG4ef+gMiY0NUoZwGSsJIuNdo/9RVwUa7C14qY85N48g9784B73CPcAgyU1nE3 8LISlvxAnnI4ocVCtPixyh4RZPua84GVfRoEqPttVHkuha0EhBJ8jmHhttf5r2Ofiqyn JX1A81iEiS2Nym1t9c0uo2SJcIbbvkUIujCjVUEBB+Hof8owQSzjqTScx1MpaqhoSnnY LgCsJ1gfR7BqS9aRRX2MlDbwCM+rfux1WaRCmERQ0aFM1OHRlVLW/n909Zd6b5/u9+6X 1AbLnpuvthM8fezeRK2hF9MAHp64yFff4UikmtnkGD4AE15sav3j41pyGOHos5CbIz8S +TcA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp2-20020a1709073e0200b006ff09d27800si1064848ejc.536.2022.08.04.05.57.31; Thu, 04 Aug 2022 05:57:55 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239646AbiHDMIj (ORCPT + 99 others); Thu, 4 Aug 2022 08:08:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239565AbiHDMIi (ORCPT ); Thu, 4 Aug 2022 08:08:38 -0400 Received: from spam.unicloud.com (gw.haihefund.cn [220.194.70.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECC0A51A0E for ; Thu, 4 Aug 2022 05:08:25 -0700 (PDT) Received: from eage.unicloud.com ([220.194.70.35]) by spam.unicloud.com with ESMTP id 274C7r4m014658; Thu, 4 Aug 2022 20:07:53 +0800 (GMT-8) (envelope-from luofei@unicloud.com) Received: from zgys-ex-mb09.Unicloud.com (10.10.0.24) by zgys-ex-mb10.Unicloud.com (10.10.0.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2375.17; Thu, 4 Aug 2022 20:07:53 +0800 Received: from zgys-ex-mb09.Unicloud.com ([fe80::eda0:6815:ca71:5aa]) by zgys-ex-mb09.Unicloud.com ([fe80::eda0:6815:ca71:5aa%16]) with mapi id 15.01.2375.017; Thu, 4 Aug 2022 20:07:53 +0800 From: =?gb2312?B?wt63yQ==?= To: "naoya.horiguchi@nec.com" , "akpm@linux-foundation.org" CC: "linmiaohe@huawei.com" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" Subject: =?gb2312?B?tPC4tDogW1BBVENIXSBtbSwgaHdwb2lzb24sIGh1Z2V0bGI6IENoZWNrIGh1?= =?gb2312?B?Z2V0bGIgaGVhZCBwYWdlIGh3cG9pc29uIGZsYWcgd2hlbiB1bnBvaXNvbiBw?= =?gb2312?Q?age?= Thread-Topic: [PATCH] mm, hwpoison, hugetlb: Check hugetlb head page hwpoison flag when unpoison page Thread-Index: AQHYp/YA2P+b2sgj8UGtO/UrSrrbAq2epYGn Date: Thu, 4 Aug 2022 12:07:53 +0000 Message-ID: <85ab16d0a56c4942bb8a3e67b9d55858@unicloud.com> References: <20220804113308.2901178-1-luofei@unicloud.com> In-Reply-To: <20220804113308.2901178-1-luofei@unicloud.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.10.1.7] Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-DNSRBL: X-MAIL: spam.unicloud.com 274C7r4m014658 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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 U29ycnksIHdyb25nIHBhdGNoLCBwbGVhc2UgaWdub3JlIHRoaXMgZW1haWwuDQpfX19fX19fX19f X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GFnZSk7DQorICAgICAgIGxsaXN0X2Zvcl9lYWNoX3NhZmUodG5vZGUs IHQsIGhlYWQtPmZpcnN0KSB7DQorICAgICAgICAgICAgICAgcCA9IGNvbnRhaW5lcl9vZih0bm9k ZSwgc3RydWN0IHJhd19od3BfcGFnZSwgbm9kZSk7DQorICAgICAgICAgICAgICAgaWYgKHAtPnBh Z2UgPT0gcGFnZSkNCisgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB0cnVlOw0KKyAgICAg ICB9DQorDQorICAgICAgIHJldHVybiBmYWxzZTsNCit9DQorDQogLyoqDQogICogdW5wb2lzb25f bWVtb3J5IC0gVW5wb2lzb24gYSBwcmV2aW91c2x5IHBvaXNvbmVkIHBhZ2UNCiAgKiBAcGZuOiBQ YWdlIG51bWJlciBvZiB0aGUgdG8gYmUgdW5wb2lzb25lZCBwYWdlDQpAQCAtMjMzMCw3ICsyMzUy LDcgQEAgaW50IHVucG9pc29uX21lbW9yeSh1bnNpZ25lZCBsb25nIHBmbikNCiAgICAgICAgICAg ICAgICBnb3RvIHVubG9ja19tdXRleDsNCiAgICAgICAgfQ0KDQotICAgICAgIGlmICghUGFnZUhX UG9pc29uKHApKSB7DQorICAgICAgIGlmICghUGFnZUhXUG9pc29uKHApICYmICFodWdldGxiX3Bh Z2VfaGVhZF9wb2lzb24ocGFnZSwgcCkpIHsNCiAgICAgICAgICAgICAgICB1bnBvaXNvbl9wcl9p bmZvKCJVbnBvaXNvbjogUGFnZSB3YXMgYWxyZWFkeSB1bnBvaXNvbmVkICUjbHhcbiIsDQogICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwZm4sICZ1bnBvaXNvbl9ycyk7DQogICAgICAg ICAgICAgICAgZ290byB1bmxvY2tfbXV0ZXg7DQotLQ0KMi4yNy4wDQoNCg==