From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6502D402B8C for ; Wed, 12 Aug 2026 10:04:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786529090; cv=none; b=NHJZDiaVnM5hyhiNC9OQTOQWaapo6ACOUfM4o5NcrzhrFNmeXKrGwUWK8KxKSWjKJuVWyPfS6fhh+cSJ7E3i5st/nYpfTI122+io271JHKSMJi4x7no6aEIOWrS9g2poPyq64CbVX3wN/XVpbi5bhbjTAgTu7Ln8iDg4t9xGb2Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786529090; c=relaxed/simple; bh=WoRaB0EVawwkliHkuJGoRlvGJWhSJmMEuytPdrNemKE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Q/X15oztAnqpXcPKsHQgkgWD7j7HynQIN/QfWvCRTI974S54obI901/zwd6vuftExN4XOuJNUTm+HUdjG8J5p68mM9Az5Fia1m6eGa7LeZ3gfml0t0yPbIt2zmVmMVC5IILQni7rGFSLHKOtKpkTXpHhFBHVB4liYaVFDMyu624= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=WmJEgiy/; arc=none smtp.client-ip=209.85.216.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WmJEgiy/" Received: by mail-pj1-f51.google.com with SMTP id 98e67ed59e1d1-38dc69c74b8so981574a91.0 for ; Wed, 12 Aug 2026 03:04:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786529088; x=1787133888; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=IlE/rwBm4Ajsne+/ftC1sXbsOIllDwyjWRq3dt4Owgg=; b=WmJEgiy/Q9YnXd2ohY+c7f1snMLqGf0Q9gO4aROAKoovQoODKrk0JBNz7XVVKTJC/X CjuDpmiNMYbN3Rv+YBcYRimTv41iP0lMFbpljF6g/Hc++oiZWau16uYcesO5XJxM5pG2 7lhiInMBdijxCN7SiqaG0Rc5SeAFV3zaG7gxH4+tu9fKivfBgwCR3uBag+Zigxk7mLZR uPo/cyM29ve3orILDEcIa59Yq+F8oOqzGb1Y7SdeIhc6SoNz3IrjN9bkF/mCmFp9eQUB aVgGzZSDPwbSPRpsU06yZDhda4/tac243zwnOjOHo0O3HS2azGaZvNjx3HMKDAGPQ0kH BUNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786529088; x=1787133888; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=IlE/rwBm4Ajsne+/ftC1sXbsOIllDwyjWRq3dt4Owgg=; b=J7wk56G8ISf6xlv0SY/yVsxvW3O+KgH/4q0G5Nb/UkyIIfTyRf8+a2cp0fwEnmT5im pmyWFReQLfutPfaI5tiK0VK8NUMKc3MEyfl2LqkhWnr5PCC7Qg5bdx7cdDaKe39bHh2y LBGxmMGmUSxyfmDnV5+u9cAX8E+W6ghMBkOaKfLowChKxeg2Mq7MhDuy2uZpGIZIoZ3E tVmIrC+G+IXvnItd8vJENPA4A/Y1cMOSgz2wDvRkY/2lOFGnzsbgi3gVZ/+xx3vP3M77 audhGgdxrhLbr2qoyFCn+Ah9HTyekNp+cIhTMyahWmTWGxGN/fCDXIDyMjqBI/per0ST MD8g== X-Forwarded-Encrypted: i=1; AHgh+RoII5d5YirP+Mll/qoZaqLn+vhlPbm9P/FpI/9QiR4RHxzSKU6SBJTAphEcV7qu9gzLcvfjDF+E5IDS7UI=@vger.kernel.org X-Gm-Message-State: AOJu0Yyfe2gULR2PRxAnOoM6WwSueYhSauklzAdb1B+vS8H4FqukMLi/ DuiKjnhidxcwSn5dtJoyPkdr0Q7b759strIKvXYwFe5Y9CguaKv5g4Mh X-Gm-Gg: AR+sD11cazeFKTfWQb7gQWu4/9qAzrX27e4jz7eBZhwslipAP9DMX03oo81tXSfAT85 K5eA1M4qLaReCAhS64UBoABkdQm3x+JtTXUAwbl0uLTtMJS1cH3z+M2lct3QuXFsJhJR20iaw+r I18H8VnyltnQiXQ9bT8IqwxUsDQOshTBlEzQw8qAHfYQIWEk/kYzqaSKed6UzUd2URg1fq3mu1Z zEY1lDcCYOVI3qTZdAY7o0N2fCo9MVzW80ycrUl+nx2GVGe/vswXaXAiv4ang7oj/cqQE7Ckfc6 icMieRfIDv+CnxHfLjBlqk/UghDcuBPDZ1YzvcCkO7gQJluU+wk8Gh0K/YW210fLOFFfP7C3Z27 IJvp4C3LHhhg2rc9HjQ1LWjN5AJ19W4wuBfHpTiQlXxcdjffxxOtvvc55eVirT5ablphuGadHeL Bx6YCX4VsQm6ISMZIZPHjvbI3r2ymsC/56kMNEQMUpYRZrxgo/T5cWsD+6AoAmkfqliY071cjOM 9Hkxm5/GjdYYit0LhTXv2sF4A== X-Received: by 2002:a17:90b:5443:b0:37f:f4ae:5f25 with SMTP id 98e67ed59e1d1-393014b4064mr4301528a91.20.1786529087671; Wed, 12 Aug 2026 03:04:47 -0700 (PDT) Received: from celestia.taila51cc2.ts.net ([2402:1980:85a:5c46:85a5:ec7:8aa8:72be]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-14124454d3csm8821247c88.2.2026.08.12.03.04.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Aug 2026 03:04:46 -0700 (PDT) From: Liew Rui Yan To: SJ Park Cc: Andrew Morton , David Hildenbrand , Lorenzo Stoakes , "Liam R . Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Jonathan Corbet , Shuah Khan , damon@lists.linux.dev, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Liew Rui Yan Subject: [PATCH 1/3] docs/mm/damon/design: accurate semantics of nr_snapshots Date: Wed, 12 Aug 2026 18:04:31 +0800 Message-ID: <20260812100433.6288-2-aethernet65535@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260812100433.6288-1-aethernet65535@gmail.com> References: <20260812100433.6288-1-aethernet65535@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Change "tried to be applied" -> "tried to be completely applied" to maintain consistency between the documentation and the code. Signed-off-by: Liew Rui Yan --- Documentation/mm/damon/design.rst | 4 ++-- include/linux/damon.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Documentation/mm/damon/design.rst b/Documentation/mm/damon/design.rst index aed6cb1cf483..1739aeec6eb9 100644 --- a/Documentation/mm/damon/design.rst +++ b/Documentation/mm/damon/design.rst @@ -846,8 +846,8 @@ scheme's execution. - ``nr_applied``: Total number of regions that the scheme is applied. - ``sz_applied``: Total size of regions that the scheme is applied. - ``qt_exceeds``: Total number of times the quota of the scheme has exceeded. -- ``nr_snapshots``: Total number of DAMON snapshots that the scheme is tried to - be applied. +- ``nr_snapshots``: Total number of DAMON snapshots that the scheme is + completely tried to be applied. - ``max_nr_snapshots``: Upper limit of ``nr_snapshots``. "A scheme is tried to be applied to a region" means DAMOS core logic determined diff --git a/include/linux/damon.h b/include/linux/damon.h index 0c8b7ddef9ab..33914594fb48 100644 --- a/include/linux/damon.h +++ b/include/linux/damon.h @@ -357,7 +357,8 @@ struct damos_watermarks { * Total bytes that passed ops layer-handled DAMOS filters. * @qt_exceeds: Total number of times the quota of the scheme has exceeded. * @nr_snapshots: - * Total number of DAMON snapshots that the scheme has tried. + * Total number of DAMON snapshots that the scheme is completely + * tried to be completely applied. * * "Tried an action to a region" in this context means the DAMOS core logic * determined the region as eligible to apply the action. The access pattern -- 2.55.0