mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-09-22 09:34:56 +02:00
mm/damon/core: hide damon_add_region()
damon_add_region() is being used by only DAMON core, but exposed to DAMON API callers. Exposing something that is not really being used by others will only increase the maintenance cost. Hide it. Link: https://lore.kernel.org/20260522154026.80546-6-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Cc: Brendan Higgins <brendan.higgins@linux.dev> Cc: Shuah Khan <shuah@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
Andrew Morton
parent
9ace949ad8
commit
9cf7ef2d66
@@ -1024,7 +1024,6 @@ static inline void damon_insert_region(struct damon_region *r,
|
||||
t->nr_regions++;
|
||||
}
|
||||
|
||||
void damon_add_region(struct damon_region *r, struct damon_target *t);
|
||||
void damon_destroy_region(struct damon_region *r, struct damon_target *t);
|
||||
int damon_set_regions(struct damon_target *t, struct damon_addr_range *ranges,
|
||||
unsigned int nr_ranges, unsigned long min_region_sz);
|
||||
|
||||
+1
-1
@@ -250,7 +250,7 @@ struct damon_region *damon_new_region(unsigned long start, unsigned long end)
|
||||
return region;
|
||||
}
|
||||
|
||||
void damon_add_region(struct damon_region *r, struct damon_target *t)
|
||||
static void damon_add_region(struct damon_region *r, struct damon_target *t)
|
||||
{
|
||||
list_add_tail(&r->list, &t->regions_list);
|
||||
t->nr_regions++;
|
||||
|
||||
Reference in New Issue
Block a user