mm/damon: remove duplicate get_monitoring_region() definitions
authorXin Hao <xhao@linux.alibaba.com>
Fri, 9 Sep 2022 21:36:06 +0000 (21:36 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:08 +0000 (14:03 -0700)
commit0d83b2d89dbfad17b62d4e7fb8f0b0525ba1a204
tree3279b016f2c4e6dda4f968299a1ca14fdf9805e1
parent6b1964e685544b8f8ba6780c10a6b38c2b1282a5
mm/damon: remove duplicate get_monitoring_region() definitions

In lru_sort.c and reclaim.c, they are all defining get_monitoring_region()
function, there is no need to define it separately.

As 'get_monitoring_region()' is not a 'static' function anymore, we try to
use a prefix to distinguish with other functions, so there rename it to
'damon_find_biggest_system_ram'.

Link: https://lkml.kernel.org/r/20220909213606.136221-1-sj@kernel.org
Signed-off-by: Xin Hao <xhao@linux.alibaba.com>
Signed-off-by: SeongJae Park <sj@kernel.org>
Suggested-by: SeongJae Park <sj@kernel.org>
Reviewed-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