1 From da2a061888883e067e8e649d086df35c92c760a7 Mon Sep 17 00:00:00 2001
2 From: SeongJae Park <sj@kernel.org>
3 Date: Fri, 3 May 2024 11:03:14 -0700
4 Subject: Docs/admin-guide/mm/damon/usage: fix wrong example of DAMOS filter matching sysfs file
6 From: SeongJae Park <sj@kernel.org>
8 commit da2a061888883e067e8e649d086df35c92c760a7 upstream.
10 The example usage of DAMOS filter sysfs files, specifically the part of
11 'matching' file writing for memcg type filter, is wrong. The intention is
12 to exclude pages of a memcg that already getting enough care from a given
13 scheme, but the example is setting the filter to apply the scheme to only
14 the pages of the memcg. Fix it.
16 Link: https://lkml.kernel.org/r/20240503180318.72798-7-sj@kernel.org
17 Fixes: 9b7f9322a530 ("Docs/admin-guide/mm/damon/usage: document DAMOS filters of sysfs")
18 Closes: https://lore.kernel.org/r/20240317191358.97578-1-sj@kernel.org
19 Signed-off-by: SeongJae Park <sj@kernel.org>
20 Cc: <stable@vger.kernel.org> [6.3.x]
21 Cc: Jonathan Corbet <corbet@lwn.net>
22 Cc: Shuah Khan <shuah@kernel.org>
23 Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
24 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
26 Documentation/admin-guide/mm/damon/usage.rst | 2 +-
27 1 file changed, 1 insertion(+), 1 deletion(-)
29 --- a/Documentation/admin-guide/mm/damon/usage.rst
30 +++ b/Documentation/admin-guide/mm/damon/usage.rst
31 @@ -389,7 +389,7 @@ pages of all memory cgroups except ``/ha
32 # # further filter out all cgroups except one at '/having_care_already'
34 echo /having_care_already > 1/memcg_path
38 Note that ``anon`` and ``memcg`` filters are currently supported only when
39 ``paddr`` `implementation <sysfs_contexts>` is being used.