summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/vmalloc.py
diff options
context:
space:
mode:
authorAlex Rusuf <yorha.op@gmail.com>2024-05-06 11:02:38 -0700
committerAndrew Morton <akpm@linux-foundation.org>2024-05-07 11:29:53 -0700
commitefee475cc3ee45b39550119d27b9608dcce4eb5f (patch)
tree4c688a2ffb977ee71994471a1ec95cb35e9bc8a8 /scripts/gdb/linux/vmalloc.py
parentce0004cac7d50da5a710d749d9efe115717a0d71 (diff)
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 'scripts/gdb/linux/vmalloc.py')
0 files changed, 0 insertions, 0 deletions