From patchwork Thu Jan 19 01:38:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13107284 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id B256AC38159 for ; Thu, 19 Jan 2023 01:38:45 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6EC3C6B0075; Wed, 18 Jan 2023 20:38:43 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 69D7E6B0078; Wed, 18 Jan 2023 20:38:43 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 454966B007B; Wed, 18 Jan 2023 20:38:43 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 2427A6B0075 for ; Wed, 18 Jan 2023 20:38:43 -0500 (EST) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 00FA5A4923 for ; Thu, 19 Jan 2023 01:38:42 +0000 (UTC) X-FDA: 80369839326.09.5074809 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf16.hostedemail.com (Postfix) with ESMTP id 6755A180010 for ; Thu, 19 Jan 2023 01:38:41 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=CnXTVAit; spf=pass (imf16.hostedemail.com: domain of sj@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1674092321; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Oy1cp+7yGyUimK41XJ4B2m90vIX7M8nbu9KoSvGzCqQ=; b=oCwQCWUfxF0iEDFpKhTR5s+CB60Sjr5eJDqTzLTGgd+vuex3c6Q5QB9yxmEhL6DHqBiis9 XJKn0V5FM0XtNGbJ1jesa82AoWvlDfjOn/f77MsA+Zhiv0luljosfBoirz1NsmDVrtTgsM XmGILCZGkFkGKef9l05RxXD0iQOeWKs= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=CnXTVAit; spf=pass (imf16.hostedemail.com: domain of sj@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1674092321; a=rsa-sha256; cv=none; b=ZJCZwpc1sCPvfcMT1gU14K/YHnIe5enJYbp7nM8q/997MyGCzTCerV9F+r9ssvQFJByism Pxkq7RZIXpfr9ZU7eJu+HNUlnXEqkuz5L8cKsnNzo0trkeC0kG1JJuyjANg45WzuroHZmO eyKsPY1SxhWlj7uwI0H9OIA4iq7ZLqQ= 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 D3061B81FB7; 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 X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 6755A180010 X-Stat-Signature: arnynkw7jwremqsa64ftttcamg65fmiz X-HE-Tag: 1674092321-790296 X-HE-Meta: U2FsdGVkX1/vqTh+bUk5hfg6ArvCfkXuR0lwr9HVO6iEiHYP5BxYKpeWDbXOS8vcXfl+7XpmyvtGznwZlv29iSp7Vz2mAiYUggN43fgmPojxdMYy0Y39P8+X5FAYAbDJKtLEAKjES+7N+4p67tt53mvGK6nnWyXx98BSC1hCIvZlhNUrDhu7WSfcMrtMWT7S4Hgz+946gaDiYEa+cTBwt2sixq7ywyNTHzjyTQEkAY9mMOKwy700jPlgMz3ZgZ+EvswkWm8rDcTLoNUUC7y6ZvbFW5UbfjY3OpR5M9zlfjybnYAXC2ob//scSxLH+YbENuoPgbTTYmK37eXWMySLssPZK+4fXGTTW1vlUejn97vrE329aXwAkKSWsNq0ZnqgXd63933OQnHPBRPbWt1GeaA4DRhg96N/or19Fs1altX0b8igg6gb+uA5vWUr0d4vvSpXD9m8deMiSTPmLBTY5ZBp8UHBmsmeS+9wDsJIQX8EQ00WxJ0xzO5Ydx8mXgU6vKcF962MDdXwhFxnxzp/8T87J6lXZ05Md+OnqoFLvgS2m7p0sHqYlA5vpKhiSH9brxbGCirztvgANbznbPUzbokLiZbPUYkHcYfXIaQPDo+X9zc6C29JIBPlTYfZOvIoMgNuqSOofw8leBB45gyDE69V/7J0bXGOwCMTWYU+OQ7tSurdmRO+U6BtFkSb3eODUroAwJBS05+QCz57UiVO/Z3RP+dZ/ip/HBLZOGMPFrsLdKFmRlHuIFxiSf4MSa8mZlA3m+132Dd1eEmgMFp8R/NuGbc9Nyqe6xq4y01YCvR0TMSvkKkC5EU1DssRm4YC2BPu/KNC8dBuaZwNddopCCtzZD41sV9XFYozKe2eSMLDKaqioqMAf2f4yRMft+CidEh8py+5Tet55XTyHRLt8A3pKWeCLmKuaCFUlqUpSLU5oSJHMTVWa4HeukHuzVPMaiX4S6h6FddBFQWQOsZ VdU9LH4l vV6Zsw7THGkaIT9pWE/3o21u1Lknc9PJSSgTCdlaY+YqVLqr4C9zX5fYCHHslAfMVFEWF3hWjhG+b+y47kvefrFf5H2cTMyHi/kXk7BOW55m0bCbgqEHGp5QS3Q== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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.