From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) (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 1D2BF78F3A for ; Wed, 12 Aug 2026 10:40:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786531207; cv=none; b=Gh7DAqbGacnrx5bbePUgSL0RN/oCbODxtN5dDjU2teYw6cGEGPikKvVozPQDjOERGD++VMtsMhB5jGJVwccplfhEOrdln9sqNJxJ8MVEGPmRDNAqTA7oHmaEpBgSYMKJE5LENHEiPdfLG752zGs8HXGMkyY1KTArKyYxJTI/vHM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786531207; c=relaxed/simple; bh=eK0hHCh+yZzclf4rIm6IurXoL5Ts7SzxFMQTEK3zrDM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GqwDGTcL56rjS3Cxu4g17pyewx6CTWppQgH1/0B2QSzngpUuoUT6y5eduNpKsEYOvltdNXpsEhdcpb54gu6LPEnhWRL8ThhLw0z87S/46Kx7zDR3J9N0gFZ4hKYVCVXd3gLpacrMuoqaN805EUrlKagz8U33T8wWBCh55u2PeEw= 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=W38GRUha; arc=none smtp.client-ip=209.85.216.48 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="W38GRUha" Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-38dc69c74b8so1017648a91.0 for ; Wed, 12 Aug 2026 03:40:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786531205; x=1787136005; 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=CySejvRkZl+O/T2betXJvXb5NuBv/ihH/Yp2vgUVu+0=; b=W38GRUhaNpSyUwfoKcMnxnqkGXaIrIv+C5T5+0ni6MmmEKEsMyXkewQ6Eao+JvsUSz 5cAGF6nTYTnXmhjFOhSThk9fW8U7D1oE20JHDHWfPuqA+nPSh3Okl8HZ9BRAbFyL5XF7 A7NcsLGsNo8ncnwspwPYOPQpIMMv2pUq9CRK8GPQ/xwazJAZAoq8J0nKtIrQn+SlXLwS BtUOKOBUqgD2WhTt1HZbxYHi97YvWmxsoQRE+HVEUN42JCcDjHEZ5jgO7mv5Ij0Jj6xT G1Vz/GzZHWTVDA2xKny19gy34DXkpTUiyUzGsLWiPEieXaojhOnhAv/vXdrNl5jTl8EN 7HlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786531205; x=1787136005; 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=CySejvRkZl+O/T2betXJvXb5NuBv/ihH/Yp2vgUVu+0=; b=MBYsdkTI/Z0xhipJMDOoLyil+v4r87EzgONOerrcGt/DFbmnYHYYrWrDObDKetIB/t 8LJEttqd9lKATGy8HAhJSLp3hX4hAEXuOukvfjXCeEv0S+kJ2xbUi6dvw+dhzY5Br3lG Gx438bd1vKDAos9hUqh6BgFX3f2vrKwLUgbcFT1YVxYkue2cjnamHoqr4eWlI7YOouF1 gqGagoYRd1RrwJI+zaBmi3P9wOIxdbsbD9fpKFIK1hAK1EdbHOruvOQ5jtYKgxgCQuos nitRQBq0oVVTyAYAE6piSSTh28UCM6Z/+bcg6w+CLcpgG8xcKZfp0ia+LNKa0QLgDZVD o99g== X-Forwarded-Encrypted: i=1; AHgh+Roeo9Gyp6bvcCbCmcX5p8+yu8xYa9zBJQkZ1TxnOI9HGdzd57vDTjWxps8DfDkF4b46o1xrYzZ/A72vw38=@vger.kernel.org X-Gm-Message-State: AOJu0Yzkqgka8Z6XnZmC+wUTtrNKEi/gKdMC3JXFq5ONv6gjC71wollf 2mgVndU2bYgh7SWxgHDsLaJxvwGMyAqkbsyCmX+aA2nZesuThB8XLUQA X-Gm-Gg: AR+sD13OhB2FLAWg6ashhiaWlayBdD39Yv14JW6sEsERHDnAWlF/ZKlO/l+vLm054yQ I76SEvtbiFUa5QkH6ouwc1gIYp9d9U0o4CmoRotDR/TSOv7/EUULFg+b29DVXrZtsSooQqmuhup 0Bt5PmyBE5zo5zbX4weDnaxET2fY9dk/4vrVv4fsvXIVXrssUeSOXjHUf1brslXjnXaVtSq4jzU 9zR/Tu2YFEM2f5KspkP2Nwh/DfWcN0LWo0pbz8/RitVFi4i5qVO6cIDPvexgbQtqFCF47yAcZf2 V5NK4D06Laj/3inQH54R80xCb8YGxlKL4zF3WlVxePpuZDkWADsGgL1NpLo7q8p8lYwM8cXWdf2 lYEqqjJYxBCARfU0RYpfoGM8fxSUhCXUnmLeiU2l6vW8o9z4NeKv/dnBBfcaXkSzkyPZSpO0k+F BVpAFAvT3he/Owhq6ZN2tSsGvbMEBPcT9tIAn4Tqa3ho13hHHhIw9OKy9T3fvC4BMqJx494ZX0c yDYu/YEtf4KFNE= X-Received: by 2002:a17:90b:398c:b0:385:393e:7124 with SMTP id 98e67ed59e1d1-39301433f18mr3789699a91.14.1786531205162; Wed, 12 Aug 2026 03:40:05 -0700 (PDT) Received: from celestia.taila51cc2.ts.net ([2402:1980:85a:5c46:85a5:ec7:8aa8:72be]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-31cf3d0b432sm9931990eec.8.2026.08.12.03.39.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Aug 2026 03:40:04 -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 v2 1/3] docs/mm/damon/design: accurate semantics of nr_snapshots Date: Wed, 12 Aug 2026 18:40:00 +0800 Message-ID: <20260812104002.15225-2-aethernet65535@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260812104002.15225-1-aethernet65535@gmail.com> References: <20260812104002.15225-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" -> "completely tried to be 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 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