Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp319976rwb; Wed, 18 Jan 2023 18:20:25 -0800 (PST) X-Google-Smtp-Source: AMrXdXs5cvHr9R2hc0c3clefvyMpDbY5q5ReLTD4VKMkHhinadG7WGykyZfAQHeRecRwRIW/WEbq X-Received: by 2002:a17:906:918:b0:877:7199:88df with SMTP id i24-20020a170906091800b00877719988dfmr897344ejd.33.1674094824849; Wed, 18 Jan 2023 18:20:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674094824; cv=none; d=google.com; s=arc-20160816; b=mNwPq1bPfwUkF+v+jR5w1RyjE2TZFCIMiV+9Bg+3yBBU9QH5r0dB0TdHZIqrswe2cw Ln+bFooAK9fK0pto/3Shj658YcqZP3Kj5B5+tMVwZuy8CsoWJEadbHS5MMC1I3cGXPBo AkOCg6Q54B4ZqeHTDjLK2Nhwrdt9phZ6AXcNfph+Jqj4uFivsVwY6txlcc4V5GEESZx1 35dUCMY3+qc7lQYC2LTbNdkf70UmObYSjwwyNuzovE4aytLd8EsrKjFLSKdOqyyAEhSX CTwQeUZnyHMHu2/qI6VOyE+uNyM/Q9vAF4ViJLOTGn0TnY5z7rYsOo5DE1B1mmCc2GvN TkxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Oy1cp+7yGyUimK41XJ4B2m90vIX7M8nbu9KoSvGzCqQ=; b=m2WxKhsgd4rlZZ1EfbvGX2aAFCxmh6lVxMafRz/9cuhU3em+3D2CTMHHj01ebW9ZsG XFeP41yYvAQqdk8fdwza5dfO3emZv8uIXbaWEd4/0MK2AwQdW70QWvV1v2AZfZ2QPuPd jbBfb7nJEZJORJ7hIcqUqFyFNoHT0Jg57KvH5iaSeSn8owPK1KDMy6gc6oc4WXDWKilI jFzc9G4cNFejkrlRaFkKvUl/OOUtiUJK6Atwk5NliQQazwGcuZEdOmSluC2HdtMPUex2 PF5oD8fClVeho//fh3Vve4dSo37Be5xwvibIT+CB6tITj9SH8P+4nycAmuYy7oUU41/0 sNLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CnXTVAit; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m17-20020a056402511100b0048ea96d245asi42750737edd.267.2023.01.18.18.20.14; Wed, 18 Jan 2023 18:20:24 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=CnXTVAit; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229576AbjASBt1 (ORCPT + 44 others); Wed, 18 Jan 2023 20:49:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229983AbjASBpl (ORCPT ); Wed, 18 Jan 2023 20:45:41 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 823A06CCC3 for ; Wed, 18 Jan 2023 17:38:41 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id CC56DB81FB1 for ; Thu, 19 Jan 2023 01:38:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26FDAC433EF; Thu, 19 Jan 2023 01:38:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674092318; bh=fkjQwp0vLjtzRNvd4VhBq2nF7CfFg6frjzTnDoBz50k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CnXTVAitPDgUvsOiX6vW9aROGzCslmoqZfT8CZ2eLQCt4U75qjK1GOtsmFX5Hh1mL GHkICAtA9fIez2uteqBjb+qkYlDqDgZoVFOyaA4k/GTtblnEyhvBhAtb4e4LVws6Qp DA9xynr2yHeQuGfMie535L77J68Rf4loZ8vsr36yvq7yvQL4QJvvOEOs1qtxUHHtBx eUoZBktQdw6BQ+9ajw8kIqoYs6Jgg2rVBMLS5qY0Iq/Jrrd97ra5R6/NBQbhXbH+Sh OBWxwozsw+MPupdH+wpqF7B5X13pWPDxxv1U/jyd8aViHxPxoVK+3G1FYOFKLnTa3g k+lZHNQuKqP+A== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] mm/damon: update comments in damon.h for damon_attrs Date: Thu, 19 Jan 2023 01:38:29 +0000 Message-Id: <20230119013831.1911-2-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230119013831.1911-1-sj@kernel.org> References: <20230119013831.1911-1-sj@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Commit cbeaa77b0449 ("mm/damon/core: use a dedicated struct for monitoring attributes") moved monitoring intervals from damon_ctx to a new struct, damon_attrs, but a comment in the header file has not updated for the change. Update it. Fixes: cbeaa77b0449 ("mm/damon/core: use a dedicated struct for monitoring attributes") Signed-off-by: SeongJae Park --- include/linux/damon.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/damon.h b/include/linux/damon.h index dfb245bb3053..d5d4d19928e0 100644 --- a/include/linux/damon.h +++ b/include/linux/damon.h @@ -354,10 +354,10 @@ struct damon_ctx; * users should register the low level operations for their target address * space and usecase via the &damon_ctx.ops. Then, the monitoring thread * (&damon_ctx.kdamond) calls @init and @prepare_access_checks before starting - * the monitoring, @update after each &damon_ctx.ops_update_interval, and + * the monitoring, @update after each &damon_attrs.ops_update_interval, and * @check_accesses, @target_valid and @prepare_access_checks after each - * &damon_ctx.sample_interval. Finally, @reset_aggregated is called after each - * &damon_ctx.aggr_interval. + * &damon_attrs.sample_interval. Finally, @reset_aggregated is called after + * each &damon_attrs.aggr_interval. * * Each &struct damon_operations instance having valid @id can be registered * via damon_register_ops() and selected by damon_select_ops() later. -- 2.25.1