]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon/core-test: test damon_set_regions
authorSeongJae Park <sj@kernel.org>
Fri, 9 Sep 2022 20:28:57 +0000 (20:28 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:06 +0000 (14:03 -0700)
commitd2d31e8094650f8f1392052bd5f4112fd9b0f2ac
tree15cbdc61e35870c5ff3da17c9c3eeaea9fb87994
parent3d00c05475f6fdf7eeb16d6d4bdc2d2aede5780f
mm/damon/core-test: test damon_set_regions

Preceding commit fixes a bug in 'damon_set_regions()', which allows holes
in the new monitoring target ranges.  This commit adds a kunit test case
for the problem to avoid any regression.

Link: https://lkml.kernel.org/r/20220909202901.57977-4-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Brendan Higgins <brendanhiggins@google.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Yun Levi <ppbuk5246@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/core-test.h