diff options
author | SeongJae Park <sj@kernel.org> | 2023-10-23 00:07:34 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-10-26 02:47:15 +0300 |
commit | b8ee5575f763c239902f8523d82103a45c153b29 (patch) | |
tree | b61aa30f596272e2a1121e83f4830b0667a41382 /mm/damon/sysfs.c | |
parent | 62f76a7b53bfa2ecfe1570a5b1d0d574c576a56d (diff) | |
download | linux-b8ee5575f763c239902f8523d82103a45c153b29.tar.xz |
mm/damon/sysfs-test: add a unit test for damon_sysfs_set_targets()
damon_sysfs_set_targets() had a bug that can result in unexpected memory
usage and monitoring overhead increase. The bug has fixed by a previous
commit. Add a unit test for avoiding a similar bug of future.
Link: https://lkml.kernel.org/r/20231022210735.46409-3-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/damon/sysfs.c')
-rw-r--r-- | mm/damon/sysfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/damon/sysfs.c b/mm/damon/sysfs.c index f73dc88d2d19..5846970cedce 100644 --- a/mm/damon/sysfs.c +++ b/mm/damon/sysfs.c @@ -1836,3 +1836,5 @@ out: return err; } subsys_initcall(damon_sysfs_init); + +#include "sysfs-test.h" |