]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon: deduplicate damon_{reclaim,lru_sort}_apply_parameters()
authorKaixu Xia <kaixuxia@tencent.com>
Tue, 20 Sep 2022 16:53:22 +0000 (16:53 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:31 +0000 (14:03 -0700)
commit1911a7f2348dc20be0e2bd7b789403e3534ecf72
treedb006d9fd3d199616a6e46f245abed6d323535ab
parent16453a8d731dda1e5bc5089fcf74322561caeed7
mm/damon: deduplicate damon_{reclaim,lru_sort}_apply_parameters()

The bodies of damon_{reclaim,lru_sort}_apply_parameters() contain
duplicates.  This commit adds a common function
damon_set_region_biggest_system_ram_default() to remove the duplicates.

Link: https://lkml.kernel.org/r/6329f00d.a70a0220.9bb29.3678SMTPIN_ADDED_BROKEN@mx.google.com
Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Suggested-by: SeongJae Park <sj@kernel.org>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/damon.h
mm/damon/core.c
mm/damon/lru_sort.c
mm/damon/reclaim.c