Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp32426893rwd; Fri, 7 Jul 2023 13:51:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlFUtetOZwUjNIhxF6nk6CnrIPrDpyoL2UTinWhHEJENJCndqTjjB8FxqP9GJipncJfs4uzO X-Received: by 2002:a17:906:2dc:b0:957:1df0:9cbf with SMTP id 28-20020a17090602dc00b009571df09cbfmr4887151ejk.19.1688763104492; Fri, 07 Jul 2023 13:51:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688763104; cv=none; d=google.com; s=arc-20160816; b=my0NT7GKtC99TxKiW28b9IuOVCQKDxkLEtrV2Q6rd7VcBsBFTxTgFNyZVA4iObKyhj ZytBkyIKFRaga6t3/jqVkqKNf5toKh51Ky8iJkwC2rd7qLKVDlc/xR54g2fehvBatluB 7JM3ZAfQhzpdFornDCQojrMqph2PZpDNDlxASmKymfgGzvNU6v38/qLQBhbmG0+xi3ob hyjianJ6FnCANNXMmtNTlCGWd7aN+fg3K/6nXritjfFJGFJsAQzyFUhlv0rLAuDUQ9Hb 59Jo5xGtvG28AzSwQeGIWCuixrTO04N9zeYaLneg46Hd5zpiM5K9rbBWtEUMJVOiff2z 2tfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=P+FCa81j9ubiSAGO/SLe1juiHTz9AhiNjQZs1H2CNhM=; fh=L2VG1FHlrDsDLoYyK7+QgEmYeEzIPrgatWXzdHeZm3U=; b=zweivGkBJbxT0x3cRtXN6alVyn33xJbyNFDzoLvMbFBhboNSOKX+IdgE0hxVkORxKb n43T/tKF5okUT4k9QY2k/iVhxfpd9A0HdfMy3Fq0zkGETeeMk0hN14oewYEDfd8Yy16i RiDe4D0LQOgc/x41Nmm9FSz5btF3uTkV4iSZhryaxEx0gFKgeagVbA7XQ2dF7dCGhaJp PIc3I5HkvYE66PSPCW2nQqlM+VJ63Ih+MUEQDe2RhFJJDnXL+Jyk1x5eVjwJRpZajdab 92RT92h/9MGnGGr9hOtsiXVQcXQrdUHerEtOoSEyKBZucdJMenhWRzAodW+He6U3Lo2f d5zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=VaeBkhzo; 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 lx22-20020a170906af1600b00992b75d593bsi108612ejb.318.2023.07.07.13.51.20; Fri, 07 Jul 2023 13:51:44 -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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=VaeBkhzo; 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 S230036AbjGGUcQ (ORCPT + 99 others); Fri, 7 Jul 2023 16:32:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229643AbjGGUcO (ORCPT ); Fri, 7 Jul 2023 16:32:14 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 135EFFC for ; Fri, 7 Jul 2023 13:32:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=P+FCa81j9ubiSAGO/SLe1juiHTz9AhiNjQZs1H2CNhM=; b=VaeBkhzojN83ipyJoaxI3rKpIN gkIatzNzoJEWjFht8ROxrPQRnc2o+1hGmyJNZLBiHXcYacL5O+Bahq8/sXBTv7BL2b5NQClJVhQEZ ckQ7iXEGATl9pHnhLZEn/OZlycP8YC24RHAwJumuKiDnsPAmXtkGyRL2mVmJ+L8mqftlxlrRqfCd3 Cxpf+778t3L3gxgRPrYyfVze/+YOS7ybq48Q9gKgBXKZj+8mhNI/QjgkaLBTXFrTRMHrcEXPQaiDe aRy/rs6xavQV6DmWHc+xruBVnYs0h66BdY9c+SAEWyyTfXPlqWHrpLe+fWO9mFS2aMcpqC60/kezq GhsADLnQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qHs79-00CKsY-NA; Fri, 07 Jul 2023 20:31:39 +0000 Date: Fri, 7 Jul 2023 21:31:39 +0100 From: Matthew Wilcox To: Jiaqi Yan Cc: akpm@linux-foundation.org, mike.kravetz@oracle.com, naoya.horiguchi@nec.com, songmuchun@bytedance.com, shy828301@gmail.com, linmiaohe@huawei.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, duenwen@google.com, axelrasmussen@google.com, jthoughton@google.com Subject: Re: [PATCH v3 2/4] mm/hwpoison: check if a subpage of a hugetlb folio is raw HWPOISON Message-ID: References: <20230707201904.953262-1-jiaqiyan@google.com> <20230707201904.953262-3-jiaqiyan@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230707201904.953262-3-jiaqiyan@google.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Fri, Jul 07, 2023 at 08:19:02PM +0000, Jiaqi Yan wrote: > Add the functionality, is_raw_hwp_subpage, to tell if a subpage of a This is incorrect naming. "subpage" was needed before we had the folio concept, but it should not be used any more. We have folios and pages now. Also, abbreviating "hwpoison" as "hwp" seems like a bad idea to me. hwp is already used as an acronym by acpi, intel_pstate, some clock drivers, an ethernet driver, and a scsi driver.