Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36540625rwd; Tue, 11 Jul 2023 02:18:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlFceGuKXpogYf7gvQ2VedjjPaCq1g55w0alyvxerD7pCIYEcx2Lc69S6HzzFloxoSguYuAA X-Received: by 2002:a17:902:db05:b0:1b8:8682:62fb with SMTP id m5-20020a170902db0500b001b8868262fbmr27656869plx.4.1689067135184; Tue, 11 Jul 2023 02:18:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689067135; cv=none; d=google.com; s=arc-20160816; b=ZoHTr1xhaq/63htwxSxnH62jD8OgR8KMRu7nFaPJVxeywYo5bM8pDT5sXiNABUzbT6 pO4YBhqYjzTVRa2kp9m7PLPU9MA/4eoTVXURIpQSAOy2osO7SMs1SS6Gc+aaOgEJ4B+H +NQ8TdXPatSCoj4ux6Va1vh/G0Ap+0lmM4veni+NTqz23ZsaWfIrlpGhW3j4MAQ9qWXz nsMR2R6pu/ylGnmwPQy7ZoQxKoPkvI8aZjx9LrBX8sggcwzXp7qLzS7hQR/AipEcQ+r9 LZ8FahgpIssW6NM2s2DH/B49qoMtQa0386eVZshfSwlHDdgSWdc6MsWzqp3nHbZNRnVL vopw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:dkim-signature:date; bh=3olRG28fHuMVdScfXTk+VChhHoKMcs08gOMMym6Knco=; fh=VDo2/BVfTPgflnSCy38NKxXTloQ8/IscSKkO/EE4TCM=; b=qhSIovGtkVfEeOquas8+OAk1JduRLQKs2Frl5nd4tjL2qfTU8KVSfQ9Aw0FNcLeaEV HlnG1JiIlTHZvBxDhwxfVw1XWmW5SARV7CeU+2U1PoVIruW2Z21zPzfm4n9W4Dpxzap4 /1E5qjn5EXS59RXhXZtp/gNUBtcY1eMRYtmWAxvoCcCI8UOoBRXjDJLDh1FGynRku8uQ bYoi3ABhJmVsmpy6IXq2mJ9ZGJ69lWBdACarp1/21QwHfem3lo80N5vzmMnONyhcXW24 0ZCDsOrZPVkCjdPionbY22F2F8RBAGpMoT00++NqyGCtdG5EZ7Q1rtMlJBKny7s2p5yN R5Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=eG1uW4BN; 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 kk2-20020a17090b4a0200b002509d96227esi9457776pjb.173.2023.07.11.02.18.42; Tue, 11 Jul 2023 02:18: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; dkim=pass header.i=@linux.dev header.s=key1 header.b=eG1uW4BN; 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 S231224AbjGKI7z (ORCPT + 99 others); Tue, 11 Jul 2023 04:59:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230515AbjGKI7x (ORCPT ); Tue, 11 Jul 2023 04:59:53 -0400 X-Greylist: delayed 90215 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 11 Jul 2023 01:59:51 PDT Received: from out-30.mta1.migadu.com (out-30.mta1.migadu.com [IPv6:2001:41d0:203:375::1e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC2D0E6A for ; Tue, 11 Jul 2023 01:59:51 -0700 (PDT) Date: Tue, 11 Jul 2023 17:59:40 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1689065989; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3olRG28fHuMVdScfXTk+VChhHoKMcs08gOMMym6Knco=; b=eG1uW4BNj7Ebz5WBJY4Z7nnNtP2AUxH00bRUZcf20kWdXqy7D0O5EuqtQ/XKewGpVfgrlE FgTol6C228VEUzZH8rWzoVu9Bw3uOLh2vUmN+5lyQ0dsZb6qUIpT5wKZSujYU/CMm6LOil YxytCRH3T7fSHaju40ijdpmgyscymlQ= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Naoya Horiguchi To: Jiaqi Yan Cc: Matthew Wilcox , 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: <20230711085940.GA2220255@ik1-406-35019.vs.sakura.ne.jp> References: <20230707201904.953262-1-jiaqiyan@google.com> <20230707201904.953262-3-jiaqiyan@google.com> <20230710002116.GA1578139@ik1-406-35019.vs.sakura.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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,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 Mon, Jul 10, 2023 at 08:11:48AM -0700, Jiaqi Yan wrote: > On Sun, Jul 9, 2023 at 5:21 PM Naoya Horiguchi > wrote: > > > > 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. > > > > Thanks for your comment, Matthew. > > > 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." > > These are names in my mind, what do you think? > * is_rawhwp_page_in_hugepage > * is_raw_hwpoison_page_in_hugepage // I prefer this one This one is fine to me. > * folio_test_hugetlb_raw_hwpoison_page > > > As for "hwp_walk", another user of "hwp" in in mm/memory-failure.c, > > we can easily substitute it with "hwpoison_walk." > > In this "hwp_walk" case, I also prefer "hwpoison" than "hwp". I can > create a separate renaming patch. Great, thank you. - Naoya Horiguchi