linux/mm/damon
Taotao Chen 7f29070f4c mm/damon/core: simplify control flow in damon_register_ops()
The function logic is not complex, so using goto is unnecessary.  Replace
it with a straightforward if-else to simplify control flow and improve
readability.

Link: https://lkml.kernel.org/r/Z9vxcPCw8tDsjKw1@OneApple
Signed-off-by: Taotao Chen <chentaotao@didiglobal.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2025-04-01 15:17:10 -07:00
..
tests mm/damon/core: make damon_set_attrs() be safe to be called from damon_call() 2025-03-17 22:06:54 -07:00
Kconfig mm/damon: remove DAMON debugfs interface 2025-01-25 20:22:29 -08:00
Makefile mm/damon: remove DAMON debugfs interface 2025-01-25 20:22:29 -08:00
core.c mm/damon/core: simplify control flow in damon_register_ops() 2025-04-01 15:17:10 -07:00
lru_sort.c Revert "mm/damon/lru_sort: adjust local variable to dynamic allocation" 2024-09-09 16:39:00 -07:00
modules-common.c mm/damon: update email of SeongJae 2023-12-20 14:48:13 -08:00
modules-common.h mm/damon/modules: deduplicate init steps for DAMON context setup 2022-11-30 15:01:26 -08:00
ops-common.c mm/damon/ops: have damon_get_folio return folio even for tail pages 2025-03-16 22:06:08 -07:00
ops-common.h mm/damon/ops-common: atomically test and clear young on ptes and pmds 2023-06-09 16:25:55 -07:00
paddr.c mm/damon: implement a new DAMOS filter type for active pages 2025-03-21 22:03:15 -07:00
reclaim.c mm/damon: add 'allow' argument to damos_new_filter() 2025-01-25 20:22:32 -08:00
sysfs-common.c mm/damon/sysfs: make kobj_type structures constant 2023-02-09 16:51:45 -08:00
sysfs-common.h mm/damon/sysfs-schemes: expose per-region filter-passed bytes 2025-01-25 20:22:28 -08:00
sysfs-schemes.c mm/damon: implement a new DAMOS filter type for active pages 2025-03-21 22:03:15 -07:00
sysfs.c mm/damon/sysfs: remove damon_sysfs_cmd_request and its readers 2025-03-17 22:06:55 -07:00
vaddr.c mm/damon: remove damon_operations->reset_aggregated 2025-03-17 22:06:57 -07:00