[PATCH 0/3] mm/damon/core: small cleanups

Josh Law posted 3 patches 1 week, 1 day ago
include/linux/damon.h |  2 ++
mm/damon/core.c       | 54 ++++++++++++++++++-------------------------
2 files changed, 24 insertions(+), 32 deletions(-)
[PATCH 0/3] mm/damon/core: small cleanups
Posted by Josh Law 1 week, 1 day ago
Three small cleanups for mm/damon/core.c:

1. Extract duplicated scheme-index-finding loops into a helper.

2. Use the already-maintained damon_nr_regions() instead of walking the
   region list to count in damon_commit_target_regions().

3. Move the static last_nr_regions variable in kdamond_split_regions()
   into struct damon_ctx so each kdamond tracks its own state.

Josh Law (3):
  mm/damon/core: deduplicate scheme index lookup into helper
  mm/damon/core: use damon_nr_regions() in damon_commit_target_regions()
  mm/damon/core: move last_nr_regions from static local to damon_ctx

 include/linux/damon.h |  2 ++
 mm/damon/core.c       | 54 ++++++++++++++++++-------------------------
 2 files changed, 24 insertions(+), 32 deletions(-)

-- 
2.34.1
Re: (sashiko status) [PATCH 0/3] mm/damon/core: small cleanups
Posted by SeongJae Park 1 week, 1 day ago
Forwarding sashiko.dev review status for this thread.

# review url: https://sashiko.dev/#/patchset/20260325073800.141756-1-objecting@objecting.org

- [PATCH 1/3] mm/damon/core: deduplicate scheme index lookup into helper
  - status: Reviewed
  - review: No issues found.
- [PATCH 2/3] mm/damon/core: use damon_nr_regions() in damon_commit_target_regions()
  - status: Reviewed
  - review: No issues found.
- [PATCH 3/3] mm/damon/core: move last_nr_regions from static local to damon_ctx
  - status: Reviewed
  - review: No issues found.

# hkml [1] generated a draft of this mail.  It can be regenerated
# using below command:
#
#     hkml patch sashiko_dev --thread_status --for_forwarding \
#             20260325073800.141756-1-objecting@objecting.org
#
# [1] https://github.com/sjp38/hackermail

Sent using hkml (https://github.com/sjp38/hackermail)
Re: (sashiko status) [PATCH 0/3] mm/damon/core: small cleanups
Posted by Josh Law 1 week, 1 day ago

On 25 March 2026 14:58:26 GMT, SeongJae Park <sj@kernel.org> wrote:
>Forwarding sashiko.dev review status for this thread.
>
># review url: https://sashiko.dev/#/patchset/20260325073800.141756-1-objecting@objecting.org
>
>- [PATCH 1/3] mm/damon/core: deduplicate scheme index lookup into helper
>  - status: Reviewed
>  - review: No issues found.
>- [PATCH 2/3] mm/damon/core: use damon_nr_regions() in damon_commit_target_regions()
>  - status: Reviewed
>  - review: No issues found.
>- [PATCH 3/3] mm/damon/core: move last_nr_regions from static local to damon_ctx
>  - status: Reviewed
>  - review: No issues found.
>
># hkml [1] generated a draft of this mail.  It can be regenerated
># using below command:
>#
>#     hkml patch sashiko_dev --thread_status --for_forwarding \
>#             20260325073800.141756-1-objecting@objecting.org
>#
># [1] https://github.com/sjp38/hackermail
>
>Sent using hkml (https://github.com/sjp38/hackermail)



Yay! No regressions