Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2461036rwd; Fri, 2 Jun 2023 09:41:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7dyIVxhZuh2QADuuWlsr/5xzm7sdz3g/IIrAD2LU5xf6E5+pR7OBxfjvs+oww5TYTies5m X-Received: by 2002:a05:6a20:9597:b0:10b:b9b3:3c9d with SMTP id iu23-20020a056a20959700b0010bb9b33c9dmr7711181pzb.49.1685724063512; Fri, 02 Jun 2023 09:41:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685724063; cv=none; d=google.com; s=arc-20160816; b=sHTI903M5Aqdyxt3MBRO1HkeutJA/IGOjric/j1axuhkEFU8KEdafR0XiBUwu9IEqA hsZS+NkWdmNYYz7XgleY6IR8VMJkVWYaC48Ik0t9/Mb+JWJ7GIb0x986aDYPSR0qoQUA jvSJvS4lg7aGTTQl79TYRjcLguHaPo6OK4RAXURsCDxMnqYMbFZy6CfwzMAohEmqJfwj 0Bu9oKCSAenSs5cOWfB4C76nOdBPK7UYv6MDUhLgz2Iz5Urx10sYeHugY0bUkFX5lQ5Q EOcL4Qlx8w37qoqOpQhZeSTAt1ADmZKLcfOSuCHfE4/+VjL8RYUoTVKQCOqZdqJcOb1r a2eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=wKBnoInz/hfKHAqZ0MziJwHfuM/u8WifJkdwiN8lH9c=; b=KuJ0WfmhYmlt32jad5JcS+pook1qeGZLfn+7I/RyYmTfgwe68BV32QjVx+psOCdwMO RApNgiBXi7Fp7WsfETKb/FdUvsufWtWEG/QeHAd8gj//rraQpqczEgXYI2E7Xux/CVxO xpbWAwsyyoDKe84tGWTUSHylgeU0VJIgblYACT8LV2mmz2qiBk0DA4Fl8cuoDLED51x+ gAQLcJdhv6E0QOjFZ93EvTX1cq3KWbP91xTOYIEcevG1X1BBqx2uqt77L17es4nDk7t+ iWY54DDQ4aTcRfHulm2dZlFWWUGdr1x7hI+K9OZbJ+tSSAusMwnsP47EVTgpQcW4Waum +TPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=0dNapuj8; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v202-20020a6361d3000000b005406e76eff9si1248007pgb.205.2023.06.02.09.40.50; Fri, 02 Jun 2023 09:41:03 -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=@google.com header.s=20221208 header.b=0dNapuj8; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236314AbjFBQ30 (ORCPT + 99 others); Fri, 2 Jun 2023 12:29:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236039AbjFBQ3Y (ORCPT ); Fri, 2 Jun 2023 12:29:24 -0400 Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EB0E1B1 for ; Fri, 2 Jun 2023 09:29:22 -0700 (PDT) Received: by mail-il1-x130.google.com with SMTP id e9e14a558f8ab-33b398f2ab8so455ab.0 for ; Fri, 02 Jun 2023 09:29:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1685723361; x=1688315361; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=wKBnoInz/hfKHAqZ0MziJwHfuM/u8WifJkdwiN8lH9c=; b=0dNapuj8fWuUrD05bvEuF/gQ9lzGpB/ebGiP3J8LGlV8M4twC1jeLAbcUYcoWGvx7S x4aGFL8zcJGqctUbBP6A0cqSxaH2NMN3uJ4d0wp/hOhkI0Tpca3LmSDAxW03IPfsaw4n a/J/xX4oBoF4gKt4jfdQHqS7jugAEk7IfxMPMNHxbeEfJosUtQNZDgPKZFIh9xIstDqI I1cy+vVbuUruH1Q17PRL7QReEqzaBggUOrFBe049n4OemV5eVd06t580FfSaadkBHfO3 TftUHH5G0XSkWCCeQu+4QAz4PMmIQenCd7BcLFY10MS09IEW/ZSr3wIHFUW7FYi4ihFq OV5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685723361; x=1688315361; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wKBnoInz/hfKHAqZ0MziJwHfuM/u8WifJkdwiN8lH9c=; b=ZZZ/8YhWpqNpOrW7xSbxiiZebsO1QSOM2pbQo6LTyDUjRbNNhVFyl/Tr+g+hrAAN4M hgUGlj34fEXJJVvfblxeyyC/v6PzI1Srk5yTbvb8GCkGrFqqnOGDSE52Qi/530LNCGZ3 /3cQ78Z1VRY6tXAZ8EBRE9BaTclRYdx5rz/Re56KMwBjVYaT5m7LFO4dpSthypdYoUkM MxJmwloaLri6crusEeED/uNP52zxXOiAYkmDs2a69S7sZEF8NhT2M0p4/bguuPO+oVQU ni/rn9oNPP1S1g3dJN/YIFVj0sc3XdFsiGYTk8Yd5ShK5z3NTsWBmWun6f6OY5cz3S2I W0Jg== X-Gm-Message-State: AC+VfDzsH6FHMhipBLz0jhdHoIRf0OZG7iZVUfUJdR+SEWOwVcLKWb87 3KlOdlTFB48+P4kTm3NWK02Txjf60oXPXYrFYuFtNQ== X-Received: by 2002:a92:c543:0:b0:33a:e716:a768 with SMTP id a3-20020a92c543000000b0033ae716a768mr204439ilj.22.1685723361223; Fri, 02 Jun 2023 09:29:21 -0700 (PDT) MIME-Version: 1.0 References: <20230602092949.545577-1-ryan.roberts@arm.com> <20230602092949.545577-4-ryan.roberts@arm.com> In-Reply-To: <20230602092949.545577-4-ryan.roberts@arm.com> From: Yu Zhao Date: Fri, 2 Jun 2023 10:28:45 -0600 Message-ID: Subject: Re: [PATCH v3 3/4] mm/damon/ops-common: Refactor to use {pte|pmd}p_clear_young_notify() To: Ryan Roberts Cc: Andrew Morton , SeongJae Park , Christoph Hellwig , "Matthew Wilcox (Oracle)" , "Kirill A. Shutemov" , Lorenzo Stoakes , Uladzislau Rezki , Zi Yan , Mike Rapoport , linux-kernel@vger.kernel.org, linux-mm@kvack.org, damon@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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, Jun 2, 2023 at 3:30=E2=80=AFAM Ryan Roberts = wrote: > > With the fix in place to atomically test and clear young on ptes and > pmds, simplify the code to handle the clearing for both the primary mmu > and the mmu notifier with a single API call. > > Signed-off-by: Ryan Roberts Acked-by: Yu Zhao