From nobody Tue Sep 29 04:38:53 2026 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: quoted-printable Content-Type: text/plain; charset="utf-8" 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/des= ign.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 exceed= ed. -- ``nr_snapshots``: Total number of DAMON snapshots that the scheme is tri= ed 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``. =20 "A scheme is tried to be applied to a region" means DAMOS core logic deter= mined 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 patt= ern --=20 2.55.0 From nobody Tue Sep 29 04:38:53 2026 Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (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 7D644402B8C for ; Wed, 12 Aug 2026 10:04:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786529094; cv=none; b=XG073bTE2feYvaWpHc4EEnLwIbAu7aPFfnSPSfl7v+dwUteTGfHjnQBMIBvSZR+6qNUyl0wt+cv2vjzzApXpeqKdncZXdf4JhxrMUMhxNSN7GOgOtnK77TcUBUf2WHjvQnQnhgSAuCD3igXPvQOQunVbd/QLmG7cryUdG4UpDiM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786529094; c=relaxed/simple; bh=FgV0EIRlXS2pNv/yLefwn1IDpSp+NZbkwedGH5rjvzA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tVmRGRFBxZVWGcMzP3mu9hanGsi1QmD2UxYNEdu6MH26YuV/9M2PmHF8x/yYe7cTvV9rY2D4v4TulMOFn6YpIxRqI0yot+YAr0yBDjbrMlkX+oreNWoOAwFtNhraLnx3+vDjuigdwG3shpNseQh4X7557BZ5EzCSqYA618HLJ+8= 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=BlFbs+aj; arc=none smtp.client-ip=209.85.210.169 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="BlFbs+aj" Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-84eb992a881so653767b3a.2 for ; Wed, 12 Aug 2026 03:04:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786529093; x=1787133893; 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=JxZo8B7n4c14lfP0ZG1amHyFP5yaEQUN0LvXnBt5yBg=; b=BlFbs+ajbfDxVSy8XDqUOZTror6FP/RY+YB4scEP8UHoi5QMQOzdBj5z/x230anfg5 nE+7DP8jbbhVBizsu/n8fGK7BssT+WNErO/TPPpruGEIy0nwt/JFBi8b0QVNUkIzm7Pc 7L/meSZdIZJzoi9t83LLhKjRdemEJAlTU70Q9xXXn+aLJCv8+xqmw+UHFwQGKir2vp/n 9KP5YRlFsMBwWWleEeKqatCAnLRBL04E7vv1u10jIdgIeblckObuE89HCevldgZIHYWT thWRnlVofBkprrcb22/bA/XPg6f3RUVgbGCEozOybM2RHps9BN6HmIozZe96CBktnthV qeRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786529093; x=1787133893; 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=JxZo8B7n4c14lfP0ZG1amHyFP5yaEQUN0LvXnBt5yBg=; b=DjEfP8l6saUCC2EKnRieh3yva9u4GT2lCmM/vuvciei9ozFy4ZB9v7NdsMcOk7ibbO A5hG7GggYOWaoqyfRZaELgsEjYHZ5Fg5QW+fAluXdOTCPqda8m+Nv1lITmmMh1eH9B0E DIFsc0WXCuBtVjB2cN6Jf3KtuAopV3Svz2Nt3PEAafuewj+G1gw77DmLBlxiAaax7utY Jt9BK7lbnqxUcvwGzIr3+sypbg1yzyne7LJ2pTWE5W0cM0FgjJ8OhCWAysdX4m5aH9Fu Op8tIwHK1PasI4SMeko+SfKshhOE79lweXNePa8p2vNybk+CHa6ddVfNNoumxrz3DkZA T3Ug== X-Forwarded-Encrypted: i=1; AHgh+RoUv16Lr9AJuucmFThoS8Qj0ezVj3M1U4HFckWStjQxn3LC8ALEBfhJzGehCArZ/fFTSCMRCLCwUdGK7l0=@vger.kernel.org X-Gm-Message-State: AOJu0YyBPMMVwzkX+YvKKjaArXrjv2NEAQYj2wuIioitvNL8Y/O8p0Ha ARuh0z6PsdxY0URtlvqLuMVjw5lemSPKiwO3SvVMLqAKzcLjIsIDvl1n X-Gm-Gg: AR+sD12XbGSJNhKULu+aJbd0FUxQYA2sZYEkqmAFca3WI7tfLPg68rgFkAMrKrPk8s6 nrBX40u5jGFWEq92fTHGOHlPbvsl4CLfyaqwIMKPY5ZSRuwv8iVNRrDqHWHCt5tuAkeK8/pfG4A S6dJAN7WLww6oZ5NN0VPNYYR0gDK725EXW4GuF4YcA1C5Ww2W47HLITu+05GxTSbTVAKuAQORoV dLnAPxwG8tXIsXoFqqBntqYdaqCVUsKQiSAYIiZ1XAmM7s2e5P0xwvSHxWbRLdMyApRTKf5ItZ3 IEZXu8ekjUAILxLFXxuJI5EDlEZJhTuEQXfhxvoC6N4R05b/aTk0lKCUSo5FtIubWs8h/i/FSnY 8xfAaI39KHBnIUn1m0a5Ht3C2SQQ4gUzeM1E6h0j9LLHSZ3csibOAf2x/CbbrZp9Nwhc0EVrIEO Wmmzpkti1fKdJjvGuQ8sCUG4wQT8M/ModGTBAp4OnwOr55EuJ0lC8UV8ABth48L+/0YlhZjrYU7 HwEhRZVAdmf4GI= X-Received: by 2002:a05:6a21:4d07:b0:3c3:a20f:f729 with SMTP id adf61e73a8af0-3cc3f51e8camr4663363637.7.1786529092842; Wed, 12 Aug 2026 03:04:52 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Aug 2026 03:04:52 -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 2/3] docs/mm/damon/design: difference between watermarks and nr_snapshots Date: Wed, 12 Aug 2026 18:04:32 +0800 Message-ID: <20260812100433.6288-3-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: quoted-printable Content-Type: text/plain; charset="utf-8" Explain the difference between nr_snapshots reaches max_nr_snapshots and watermarks. Signed-off-by: Liew Rui Yan --- Documentation/mm/damon/design.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/mm/damon/design.rst b/Documentation/mm/damon/des= ign.rst index 939298f2a9b9..1fcf0b8c044b 100644 --- a/Documentation/mm/damon/design.rst +++ b/Documentation/mm/damon/design.rst @@ -872,7 +872,8 @@ the action to the region will fail. =20 Unlike normal stats, ``max_nr_snapshots`` is set by users. If it is set as non-zero and ``nr_snapshots`` be same to or greater than ``nr_snapshots``,= the -scheme is deactivated. +scheme is deactivated. Note that, unlike watermarks, even if a scheme's +``nr_snapshots`` reaches ``max_nr_snapshots``, monitoring will not stop. =20 To know how user-space can read the stats via :ref:`DAMON sysfs interface `, refer to :ref:s`stats ` part of the --=20 2.55.0 From nobody Tue Sep 29 04:38:53 2026 Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) (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 00CB8415F32 for ; Wed, 12 Aug 2026 10:04:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786529100; cv=none; b=DIy5iz6fGtdCo1ya5Gg3/UaymEb1iedqKmMd9GPB7Y7OpO7Vk9CXPlsOMPecsvrWzxZqiNJlV39yqOk4aII6n/aQb11MeBrxLP8Y6fM9gO4smkvf5GWaz8aOJGj5k7wjN8KIDvPbiJjHt4s3iQdEjyr4JTVYkixa2Nur/ANBlnM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786529100; c=relaxed/simple; bh=EHmNb5OrnnC4mKZ2Bjz94rRJJr1n/ZIhoUobvZIv6hk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=n2vCsMQCazPVhhj7UwOVRebFM91NBAn8JTmxVnbW9ndghpou6OOujcUl8T08oGbTptN67WXjmzGYfMoJre/Gm7anuQsVcD1ozhMdUIYJa7JlQXcxXGerFCnSlKKxNv+js1fZQEf5juYBCOt2lMVgbHTwdBihlrVHADN/fg5V4wI= 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=WCCPBqP+; arc=none smtp.client-ip=209.85.216.54 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="WCCPBqP+" Received: by mail-pj1-f54.google.com with SMTP id 98e67ed59e1d1-382ef647e20so871499a91.1 for ; Wed, 12 Aug 2026 03:04:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786529098; x=1787133898; 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=5rY136w+JpL/ylEjfYfCsqSvAnSrsJPi+k0wPlzk9EU=; b=WCCPBqP+J7EnXbTsypWpY+YqbLj8FK90wm+nj1hAseE01qM/j1p4Xm7Wo/SHOj7sOU NDNn9d0y2osuKCRqappYaq+6g66IyoTFZKa7ZdmAh7f6NQW8sOSeDTp4g1Z5eSaJt6z5 jsife/3ZjEE7Bs4tBSlg/OHRoguEsNWNrTAo0FKGje/13rTNGcmYNyu9/zLRNPZN7hRb F5kcuPOcgLnsJ48ZM6MEqPbHx74DaCLWZCZ0rz3pUBldG6FNcRPS/OXGvUGWCyJkEoP1 UtMQ0FsEJMwzGH5GvisALoHaSokfTGm/L0Hi04A5AFu9nj0NS7Ren8l3euAqY2mBjbJv JsZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786529098; x=1787133898; 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=5rY136w+JpL/ylEjfYfCsqSvAnSrsJPi+k0wPlzk9EU=; b=niRV87jz58LTprpQFM6js346Aoul6AAN4Vrsd9sW4+hqngRgyDoMLm6/EU8fVD0OgK QBoYDbM11/wo4+OpbsEFaVyIBH4iNBxzdTPUx3veMs82zZEvEITECH+w8eSwYIgjFS1q kxN+7u29qfpSVIdzJZJZ46IUhBPQPy24wrLldMV5rFj9g6Jmv0bXElvcKM0FODLrjTMQ NjiGF29G3ho0AAqmzG6fml5WPcTiJTs1zbU/NzHtL+wK3N+JqPKTgzgYQUFhLU7wxK45 MLb0q9uR3lhFfsjc4Qs6z/HPUpdvyZ9CyIEK3EZYA6Gyp9WYHjuDHzuwlI4S2yWbE1QN ZfTg== X-Forwarded-Encrypted: i=1; AHgh+RqpSQWLBWyDPHU8m/thi7u0Srjsx4GNz08Vg6IPBsSrVaSaDrzxsGFsHzEBi44fdyId3038sio8wq+fXCU=@vger.kernel.org X-Gm-Message-State: AOJu0YxNdmQillGR82XrgDVe8tzTU8U/uMQj2MJnTYOWpfsLWxhbcl/m rEiPqjeT/5lD5h2lQwy02cKYjz0tHPwTZ81dK/hlQHFiIAOzBk8uYvys X-Gm-Gg: AR+sD11dFxmlLoYsDVhKQ4kwdmj5E2o66eaHDgNiN4es0XkMzPv40er4cGG2iEp3fpU 3UmiNLOdXp7cA7uZ636OkTMMVh0GcNd2d2ugmRDKqx6SKh2sipDtXv4H5zgvtoYTicuZ7LKiD5O ggW79EaK/GaY+zni+/yibY/PQ08p20JjmnUmiKxdGUG+Gf2Br9RIcl3zLEXotGFr59Cf1VrbREI ng6ZGH+OMf34TXAtWmGgO8RO1ueKYBH+gPNlMjmouXC2inJ4wUQxgoEB4/NtCP2nNeL342L10os 4Qp6jT4KrhP1IJsZSk0xKA2BNo14gZ9i1Px+rgaErL6gCI0wi05zGYiqNzu4rN41cS95S0QlVmH nvehVMCxD2IBK/uim6mC+M2PqU0wYcPqfmQ7KUGCXUYh3D473JCqiaWdoybuIPbf5ruH/etoeKx YXIRYbtePhSr9QuCKwBXvadOEVHhndyykhEdVUjQUCDwRlCepNBO45ZP0gwuNOKKDw9nJaX0NZM RXTI36WxzRbixg= X-Received: by 2002:a17:90b:1a8b:b0:38e:fea2:df53 with SMTP id 98e67ed59e1d1-39301253b3bmr3943475a91.4.1786529098246; Wed, 12 Aug 2026 03:04:58 -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.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Aug 2026 03:04:57 -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 3/3] docs/mm/damon/design: fix typo of max_nr_snapshots Date: Wed, 12 Aug 2026 18:04:33 +0800 Message-ID: <20260812100433.6288-4-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: quoted-printable Content-Type: text/plain; charset="utf-8" Fixes a typo (nr_snapshots -> max_nr_snapshots) and corrects a grammar error. Signed-off-by: Liew Rui Yan Reviewed-by: SJ Park --- Documentation/mm/damon/design.rst | 4 ++-- include/linux/damon.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/mm/damon/design.rst b/Documentation/mm/damon/des= ign.rst index 1fcf0b8c044b..62ba6cc2e999 100644 --- a/Documentation/mm/damon/design.rst +++ b/Documentation/mm/damon/design.rst @@ -871,8 +871,8 @@ action is ``pageout`` while all pages of the region are= unreclaimable, applying the action to the region will fail. =20 Unlike normal stats, ``max_nr_snapshots`` is set by users. If it is set as -non-zero and ``nr_snapshots`` be same to or greater than ``nr_snapshots``,= the -scheme is deactivated. Note that, unlike watermarks, even if a scheme's +non-zero and ``nr_snapshots`` equals or is greater than ``max_nr_snapshots= ``, +the scheme is deactivated. Note that, unlike watermarks, even if a scheme's ``nr_snapshots`` reaches ``max_nr_snapshots``, monitoring will not stop. =20 To know how user-space can read the stats via :ref:`DAMON sysfs interface diff --git a/include/linux/damon.h b/include/linux/damon.h index d642ce4fc83c..75ece3d03be2 100644 --- a/include/linux/damon.h +++ b/include/linux/damon.h @@ -549,7 +549,7 @@ struct damos_migrate_dests { * * After applying the &action to each region, &stat is updated. * - * If &max_nr_snapshots is set as non-zero and &stat.nr_snapshots be same = to or + * If &max_nr_snapshots is set as non-zero and &stat.nr_snapshots equals o= r is * greater than it, the scheme is deactivated. */ struct damos { --=20 2.55.0