]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon/sysfs: reuse damon_set_regions() for regions setting
authorSeongJae Park <sj@kernel.org>
Tue, 10 May 2022 01:20:55 +0000 (18:20 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 13 May 2022 14:20:08 +0000 (07:20 -0700)
commit85f042b6ac697704c15cbf073f2700d6dbfae9ff
tree8131c729588a5113b6d4fe6c5d02ce9afbb33670
parentce647b3b328200ccb9908e014279fa08ec56a084
mm/damon/sysfs: reuse damon_set_regions() for regions setting

'damon_set_regions()' is general enough so that it can also be used for
only creating regions.  This commit makes DAMON sysfs interface to reuse
the function rather keeping two implementations for a same purpose.

Link: https://lkml.kernel.org/r/20220429160606.127307-9-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/sysfs.c