mm-damon-core-kunit-test-probe_hits-handling-at-region-split-and-merge.patch removed from -mm tree
The quilt patch titled
Subject: mm/damon/core-kunit: test probe_hits handling at region split and merge
has been removed from the -mm tree. Its filename was
mm-damon-core-kunit-test-probe_hits-handling-at-region-split-and-merge.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Jason Angelov <[email protected]>
Subject: mm/damon/core-kunit: test probe_hits handling at region split and merge
Date: Mon, 31 Aug 2026 08:06:48 -0700
Patch series "mm/damon: add kunit tests for probe_hits handling and probe params validation", v2.
DAMON recently introduced probes and probe weights. Add kunit tests for the propagation of probe_hits at region split and merge, and the rejection of invalid probe parameters by damon_valid_probe_params().
This patch (of 2):
damon_split_region_at() copies probe_hits[] and last_probe_hits[] to the new split region.
damon_merge_two_regions() sets probe_hits[] to the size-weighted average of the merged regions.
Extend damon_test_split_at() and damon_test_merge_two() tests to cover those fields.
---
mm/damon/tests/core-kunit.h | 7 +++++++ 1 file changed, 7 insertions(+)
mm/damon/tests/core-kunit.h renamed from mm/damon/tests/core-kunit.h~mm-damon-core-kunit-test-probe_hits-handling-at-region-split-and-merge +7 -0
@@ -152,6 +152,8 @@ static void damon_test_split_at(struct k } r->nr_accesses =42 ; r->last_nr_accesses =15 ; + r->probe_hits[0 ] =7 ; + r->last_probe_hits[0 ] =3 ; r->age =10 ;damon_add_region (r, t);damon_split_region_at (t, r,25 );
@@ -168,6 +170,8 @@ static void damon_test_split_at(struct kKUNIT_EXPECT_EQ (test, r->nr_accesses, r_new->nr_accesses);KUNIT_EXPECT_EQ (test, r->last_nr_accesses, r_new->last_nr_accesses); +KUNIT_EXPECT_EQ (test, r->probe_hits[0 ], r_new->probe_hits[0 ]); +KUNIT_EXPECT_EQ (test, r->last_probe_hits[0 ], r_new->last_probe_hits[0 ]);KUNIT_EXPECT_EQ (test, r->age, r_new->age); out:
@@ -189,6 +193,7 @@ static void damon_test_merge_two(structkunit_skip (test,"region alloc fail" ); } r->nr_accesses =10 ; + r->probe_hits[0 ] =6 ; r->age =9 ;damon_add_region (r, t); r2 =damon_new_region (100 ,300 );
@@ -197,6 +202,7 @@ static void damon_test_merge_two(structkunit_skip (test,"second region alloc fail" ); } r2->nr_accesses =20 ; + r2->probe_hits[0 ] =14 ; r2->age =21 ;damon_add_region (r2, t);
@@ -204,6 +210,7 @@ static void damon_test_merge_two(structKUNIT_EXPECT_EQ (test, r->ar.start,0ul );KUNIT_EXPECT_EQ (test, r->ar.end,300ul );KUNIT_EXPECT_EQ (test, r->nr_accesses,16u ); +KUNIT_EXPECT_EQ (test, r->probe_hits[0 ],11 );KUNIT_EXPECT_EQ (test, r->age,17u ); i =0 ;
_
Patches currently in -mm which might be from [email protected] are