aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/asm-generic
diff options
context:
space:
mode:
authorKaixu Xia <kaixuxia@tencent.com>2022-09-04 22:36:06 +0800
committerAndrew Morton <akpm@linux-foundation.org>2022-10-03 14:02:55 -0700
commitc274cd5c9bf5ded4b3f2a4e99f76223c8f006051 (patch)
tree298c62113b0ebd584df8ac9d1b6d3e2dc31cb524 /include/uapi/asm-generic
parentmm/hugetlb.c: remove unnecessary initialization of local `err' (diff)
downloadlinux-dev-c274cd5c9bf5ded4b3f2a4e99f76223c8f006051.tar.xz
linux-dev-c274cd5c9bf5ded4b3f2a4e99f76223c8f006051.zip
mm/damon/sysfs: simplify the judgement whether kdamonds are busy
It is unnecessary to get the number of the running kdamond to judge whether kdamonds are busy. Here we can use the damon_sysfs_kdamond_running() helper and return -EBUSY directly when finding a running kdamond. Meanwhile, merging with the judgement that a kdamond has current sysfs command callback request to make the code more clear. Link: https://lkml.kernel.org/r/1662302166-13216-1-git-send-email-kaixuxia@tencent.com Signed-off-by: Kaixu Xia <kaixuxia@tencent.com> Reviewed-by: SeongJae Park <sj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/uapi/asm-generic')
0 files changed, 0 insertions, 0 deletions