Skip to content

mm/damon: cleanup code

SeongJae Park damon linux-mm lkml 1 version Applied

Status from this message: [merged mm-stable] mm-damon-lru_sort-deduplicate-hot-cold-schemes-generators.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest22 patches 0 repliesApplied 22/22

Patches in v1 All 22 applied

#Subject and filesSizeRepliesApplied
1/22mm/damon/paddr: make supported DAMOS actions of paddr clearmm/damon/paddr.c+3 -00 repliesApplied
2/22mm/damon/paddr: deduplicate damon_pa_{mark_accessed,deactivate_pages}()mm/damon/paddr.c+12 -140 repliesApplied
3/22mm/damon/core: copy struct-to-struct instead of field-to-field in damon_new_scheme()mm/damon/core.c+4 -170 repliesApplied
4/22mm/damon/core: factor out 'damos_quota' private fileds initializationmm/damon/core.c+14 -90 repliesApplied
5/22mm/damon/core: use a dedicated struct for monitoring attributesinclude/linux/damon.h mm/damon/core.c mm/damon/dbgfs.c +2 more+44 -340 repliesApplied
6/22mm/damon/core: reduce parameters for damon_set_attrs()include/linux/damon.h mm/damon/core.c mm/damon/dbgfs.c +3 more+36 -300 repliesApplied
7/22mm/damon/reclaim: use 'struct damon_attrs' for storing parameters for itmm/damon/reclaim.c+19 -170 repliesApplied
8/22mm/damon/lru_sort: use 'struct damon_attrs' for storing parameters for itmm/damon/lru_sort.c+21 -190 repliesApplied
9/22mm/damon: implement a monitoring attributes module parameters generator macromm/damon/modules-common.h+18 -00 repliesApplied
10/22mm/damon/lru_sort: use monitoring attributes parameters generaotr macromm/damon/lru_sort.c+5 -420 repliesApplied
11/22mm/damon/reclaim: use monitoring attributes parameters generator macromm/damon/reclaim.c+5 -420 repliesApplied
12/22mm/damon/modules-common: implement a watermarks module parameters generator macromm/damon/modules-common.h+7 -00 repliesApplied
13/22mm/damon/lru_sort: use watermarks parameters generator macromm/damon/lru_sort.c mm/damon/modules-common.h+12 -560 repliesApplied
14/22mm/damon/reclaim: use watermarks parameters generator macromm/damon/reclaim.c+9 -470 repliesApplied
15/22mm/damon/modules-common: implement a stats parameters generator macromm/damon/modules-common.h+12 -00 repliesApplied
16/22mm/damon/reclaim: use stat parameters generatormm/damon/reclaim.c+5 -360 repliesApplied
17/22mm/damon/lru_sort: use stat generatormm/damon/lru_sort.c+12 -710 repliesApplied
18/22mm/damon/modules-common: implement a damos quota params generatormm/damon/modules-common.h+7 -10 repliesApplied
19/22mm/damon/modules-common: implement damos time quota params generatormm/damon/modules-common.h+5 -20 repliesApplied
20/22mm/damon/reclaim: use the quota params generator macromm/damon/reclaim.c+12 -520 repliesApplied
21/22mm/damon/lru_sort: use quotas param generatormm/damon/lru_sort.c+19 -510 repliesApplied
22/22mm/damon/lru_sort: deduplicate hot/cold schemes generatorsmm/damon/lru_sort.c+21 -240 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/22] mm/damon: cleanup code

DAMON code was not so clean from the beginning, but it has been too much nowadays, especially due to the duplicates in DAMON_RECLAIM and DAMON_LRU_SORT. This patchset cleans some of the mess.

SeongJae Park (22):
mm/damon/paddr: make supported DAMOS actions of paddr clear mm/damon/paddr: deduplicate
damon_pa_{mark_accessed,deactivate_pages}()
mm/damon/core: copy struct-to-struct instead of field-to-field in
damon_new_scheme()
mm/damon/core: factor out 'damos_quota' private fileds initialization mm/damon/core: use a dedicated struct for monitoring attributes mm/damon/core: reduce parameters for damon_set_attrs() mm/damon/reclaim: use 'struct damon_attrs' for storing parameters for
it
mm/damon/lru_sort: use 'struct damon_attrs' for storing parameters for
it
mm/damon: implement a monitoring attributes module parameters
generator macro
mm/damon/lru_sort: use monitoring attributes parameters generaotr
macro
mm/damon/reclaim: use monitoring attributes parameters generator macro mm/damon/modules-common: implement a watermarks module parameters
generator macro
mm/damon/lru_sort: use watermarks parameters generator macro mm/damon/reclaim: use watermarks parameters generator macro mm/damon/modules-common: implement a stats parameters generator macro mm/damon/reclaim: use stat parameters generator mm/damon/lru_sort: use stat generator mm/damon/modules-common: implement a damos quota params generator mm/damon/modules-common: implement damos time quota params generator mm/damon/reclaim: use the quota params generator macro mm/damon/lru_sort: use quotas param generator mm/damon/lru_sort: deduplicate hot/cold schemes generators

 include/linux/damon.h     |  34 +++--
 mm/damon/core.c           |  87 +++++------
 mm/damon/dbgfs.c          |  15 +-
 mm/damon/lru_sort.c       | 303 +++++++++-----------------------------
 mm/damon/modules-common.h |  46 ++++++
 mm/damon/ops-common.c     |   4 +-
 mm/damon/paddr.c          |  29 ++--
 mm/damon/reclaim.c        | 220 ++++++---------------------
 mm/damon/sysfs.c          |  12 +-
 mm/damon/vaddr.c          |   4 +-
 10 files changed, 246 insertions(+), 508 deletions(-)
 create mode 100644 mm/damon/modules-common.h
Signature · 1 line
2.25.1