Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34653553rwd; Sun, 9 Jul 2023 17:27:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlGL6K7wIbPhgehbe5PSHFuOfcGw1I8JuEgaXn2ftP0KNgqFy/5PQDbjEIndkUG0PMVqAz0Z X-Received: by 2002:a05:6870:5692:b0:1b3:d39a:968f with SMTP id p18-20020a056870569200b001b3d39a968fmr11100327oao.58.1688948842152; Sun, 09 Jul 2023 17:27:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688948842; cv=none; d=google.com; s=arc-20160816; b=voNwp/Pzduu+kKSW1GGyHxalgiWFZGkS1TXFQRndLxw3tfaDXOV4lyItYWlqgOiy/v /w+oeNSIe80syrwXLtzXWpbuoQVzIgIEI8k38WyyGSc7qeqkF/HgE04PlIE9Z07FOtpn G7QgXjkbipjCMu6f+WScclePcay5fG2IWiFqeFSo+nj/IvVMJo+f7ZLia8B9u4u/gNMF mXr/LrGy8XRcVfH0Fh93UbrLHRR1xYbDSTgjeFZfmEg7hrwzTC716BtRAFBM8t6OZuMS 8uthAf5DJa3VqezBUCK1CZAqbHtqb49qJw7r+1PHOeQrdK8SsCDBhGYjylAnmiu40guq ee6A== 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:dkim-signature:date; bh=j9Mc26a/DPJrsB3Au4Lg7Qs2eiX+PC7/Wg8QJdNNfb4=; fh=pr1hr22ghFqMbtmBkGvrupPlJ03DJitZfs1fqC/rH8w=; b=zmhTs6eYhIHJ8JXn1Jef4tdzYd7te5p3EOJ0b0A7J4hKxeWVlXWzkfsipP2hI14Twk hybG8zHKaMAROZmqB68DavXL6+lA2fECG84Ow3qRt7WGQgv7tzjXEaPxNqlZQ1Dk3a4F hrvHrUN7EBhI8JjeJMewDcp3p3pelM8ibEtJ0AYIOnWCDKakhuMfTBaCy1YI4bzAIOgY uWglMICIhbr81J4PhIjeP/DNkoTNws5ncHuOSi0fYlBBRk5TFW/Px/ZCg5k/JtfNSRbZ 52wdyxMzttM98acr3vL9dnChPpxhqOPLh6rpgSIgEd2HJhtwM6F+EECj3dr+H5xL5WZk gbIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=NF4a43yR; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l21-20020a17090a409500b0025eab041423si5869061pjg.189.2023.07.09.17.27.10; Sun, 09 Jul 2023 17:27:22 -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=@linux.dev header.s=key1 header.b=NF4a43yR; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230120AbjGJAVb (ORCPT + 99 others); Sun, 9 Jul 2023 20:21:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjGJAVa (ORCPT ); Sun, 9 Jul 2023 20:21:30 -0400 Received: from out-35.mta0.migadu.com (out-35.mta0.migadu.com [IPv6:2001:41d0:1004:224b::23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA568114 for ; Sun, 9 Jul 2023 17:21:28 -0700 (PDT) Date: Mon, 10 Jul 2023 09:21:16 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1688948486; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=j9Mc26a/DPJrsB3Au4Lg7Qs2eiX+PC7/Wg8QJdNNfb4=; b=NF4a43yR/DlMAmwvsD4TF9y3fLigDbBFsIHMyLJrLsldW94ar6HI8OfvE/2uvwGh/f7bwO 1zbW46g64E2YDSpD1WodpLImFRkyWmv0UrALaLW//AsKwmn4M2VKFlCn5xmSXkQFDf/yqk DKPX7V5FYpyJxsUBcUjYpV0DijSKl+Q= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Naoya Horiguchi To: Matthew Wilcox Cc: Jiaqi Yan , 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: <20230710002116.GA1578139@ik1-406-35019.vs.sakura.ne.jp> References: <20230707201904.953262-1-jiaqiyan@google.com> <20230707201904.953262-3-jiaqiyan@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 Fri, Jul 07, 2023 at 09:31:39PM +0100, Matthew Wilcox wrote: > 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. I think we can address the raw hwpoison page by the offset in folio/hugepage to eliminate the concept of "subpage". > > 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. I originally introduced the abbreviation "hwp" to avoid using a lengthy function name such as "folio_test_hugetlb_raw_hwpoison_unreliable()." Therefore, I prefer using "rawhwp" instead of a longer form like "raw_hwpoison," although I don't expect any confusion between "hwp" and "rawhwp." As for "hwp_walk", another user of "hwp" in in mm/memory-failure.c, we can easily substitute it with "hwpoison_walk." Thanks, Naoya Horiguchi