summaryrefslogtreecommitdiff
path: root/mm/util.c
diff options
context:
space:
mode:
authorAlex Rusuf <yorha.op@gmail.com>2024-05-06 21:02:38 +0300
committerAndrew Morton <akpm@linux-foundation.org>2024-05-12 01:41:36 +0300
commit3b15f9d1c22dfe82efd03cb7acc2eeb557c735b5 (patch)
tree30eec30ec4eebaa8a56e473376f7058a9db9e64c /mm/util.c
parent4f687281012e2da1a34cfe08ab10ea1361c600d2 (diff)
downloadlinux-3b15f9d1c22dfe82efd03cb7acc2eeb557c735b5.tar.xz
mm/damon/core: fix return value from damos_wmark_metric_value
damos_wmark_metric_value's return value is 'unsigned long', so returning -EINVAL as 'unsigned long' may turn out to be very different from the expected one (using 2's complement) and treat as usual matric's value. So, fix that, checking if returned value is not 0. Link: https://lkml.kernel.org/r/20240506180238.53842-1-sj@kernel.org Fixes: ee801b7dd782 ("mm/damon/schemes: activate schemes based on a watermarks mechanism") Signed-off-by: Alex Rusuf <yorha.op@gmail.com> Reviewed-by: SeongJae Park <sj@kernel.org> Signed-off-by: SeongJae Park <sj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/util.c')
0 files changed, 0 insertions, 0 deletions