mm/damon: deduplicate damon_{reclaim,lru_sort}_apply_parameters()
mainline inclusion from mainline-v6.2-rc6 commit 233f0b31 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I6MRUG Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=233f0b31bd9503ce2be7be0bde69c67287c8a741 -------------------------------- 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> Signed-off-by:
Ze Zuo <zuoze1@huawei.com>
Loading
Please sign in to comment