[PATCH 0/4] mm/damon: code simplifications and cleanups

xiakaixu1987@gmail.com posted 4 patches 3 years, 6 months ago
mm/damon/core.c  | 24 +++++++++---------------
mm/damon/paddr.c |  5 ++---
mm/damon/sysfs.c | 11 ++++-------
mm/damon/vaddr.c |  9 ++++++---
4 files changed, 21 insertions(+), 28 deletions(-)
[PATCH 0/4] mm/damon: code simplifications and cleanups
Posted by xiakaixu1987@gmail.com 3 years, 6 months ago
From: Kaixu Xia <kaixuxia@tencent.com>

This patchset contains some code simplifications and cleanups
for DAMON.

Kaixu Xia (4):
  mm/damon: simplify the parameter passing for 'prepare_access_checks'
  mm/damon/sysfs: simplify the variable 'pid' assignment operation
  mm/damon/core: simplify the kdamond stop mechanism by removing 'done'
  mm/damon/vaddr: indicate the target is invalid when 'nr_regions' is
    zero

 mm/damon/core.c  | 24 +++++++++---------------
 mm/damon/paddr.c |  5 ++---
 mm/damon/sysfs.c | 11 ++++-------
 mm/damon/vaddr.c |  9 ++++++---
 4 files changed, 21 insertions(+), 28 deletions(-)

-- 
2.27.0
Re: [PATCH 0/4] mm/damon: code simplifications and cleanups
Posted by SeongJae Park 3 years, 6 months ago
On Tue, 13 Sep 2022 17:11:23 +0800 xiakaixu1987@gmail.com wrote:

> From: Kaixu Xia <kaixuxia@tencent.com>
> 
> This patchset contains some code simplifications and cleanups
> for DAMON.

For the first three patches,

Reviewed-by: SeongJae Park <sj@kernel.org>

But, I have a question for the last one.  Please answer it.

Thanks,
SJ

> 
> Kaixu Xia (4):
>   mm/damon: simplify the parameter passing for 'prepare_access_checks'
>   mm/damon/sysfs: simplify the variable 'pid' assignment operation
>   mm/damon/core: simplify the kdamond stop mechanism by removing 'done'
>   mm/damon/vaddr: indicate the target is invalid when 'nr_regions' is
>     zero
> 
>  mm/damon/core.c  | 24 +++++++++---------------
>  mm/damon/paddr.c |  5 ++---
>  mm/damon/sysfs.c | 11 ++++-------
>  mm/damon/vaddr.c |  9 ++++++---
>  4 files changed, 21 insertions(+), 28 deletions(-)
> 
> -- 
> 2.27.0