Commit 56dff929 authored by Thorsten Blum's avatar Thorsten Blum Committed by Andrew Morton
Browse files

mm/damon/core: use str_high_low() helper in damos_wmark_wait_us()

Remove hard-coded strings by using the str_high_low() helper function.

Link: https://lkml.kernel.org/r/20250116204216.106999-2-thorsten.blum@linux.dev


Signed-off-by: default avatarThorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: default avatarSeongJae Park <sj@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 3c7fd942
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@
#include <linux/psi.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/string_choices.h>

#define CREATE_TRACE_POINTS
#include <trace/events/damon.h>
@@ -2076,8 +2077,7 @@ static unsigned long damos_wmark_wait_us(struct damos *scheme)
		if (scheme->wmarks.activated)
			pr_debug("deactivate a scheme (%d) for %s wmark\n",
				 scheme->action,
					metric > scheme->wmarks.high ?
					"high" : "low");
				 str_high_low(metric > scheme->wmarks.high));
		scheme->wmarks.activated = false;
		return scheme->wmarks.interval;
	}