aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorXin Hao <xhao@linux.alibaba.com>2022-09-15 22:22:36 +0800
committerAndrew Morton <akpm@linux-foundation.org>2022-10-03 14:03:26 -0700
commit871f697b494b04f8d78cc090e49b416062d23a10 (patch)
tree51e7a0531609eadf3b74c5d899bf6394900e6072 /mm/page_alloc.c
parentx86: kmsan: handle CPU entry area (diff)
downloadlinux-rng-871f697b494b04f8d78cc090e49b416062d23a10.tar.xz
linux-rng-871f697b494b04f8d78cc090e49b416062d23a10.zip
mm/damon/sysfs: avoid call damon_target_has_pid() repeatedly
In damon_sysfs_destroy_targets(), we call damon_target_has_pid() to check whether the 'ctx' include a valid pid, but there no need to call damon_target_has_pid() to check repeatedly, just need call it once. [xhao@linux.alibaba.com: more simplified code calls damon_target_has_pid()] Link: https://lkml.kernel.org/r/20220916133535.7428-1-xhao@linux.alibaba.com Link: https://lkml.kernel.org/r/20220915142237.92529-1-xhao@linux.alibaba.com Signed-off-by: Xin Hao <xhao@linux.alibaba.com> Reviewed-by: SeongJae Park <sj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions