summaryrefslogtreecommitdiffstats
path: root/mm/damon
diff options
context:
space:
mode:
authorSeongJae Park <sj@kernel.org>2022-01-14 14:10:44 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2022-01-15 16:30:33 +0200
commit251403f19aab6a122f4dcfb14149814e85564202 (patch)
tree965286828e6826db5f36cf1f907f21baf68adc4b /mm/damon
parent70b8480812d0a3930049a44820a1fa149b090c10 (diff)
downloadlinux-251403f19aab6a122f4dcfb14149814e85564202.tar.bz2
mm/damon/vaddr: use pr_debug() for damon_va_three_regions() failure logging
Failure of 'damon_va_three_regions()' is logged using 'pr_err()'. But, the function can fail in legal situations. To avoid making users be surprised and to keep the kernel clean, this makes the log to be printed using 'pr_debug()'. Link: https://lkml.kernel.org/r/20211229131016.23641-3-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/damon')
-rw-r--r--mm/damon/vaddr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/damon/vaddr.c b/mm/damon/vaddr.c
index ee465b380612..223829655d64 100644
--- a/mm/damon/vaddr.c
+++ b/mm/damon/vaddr.c
@@ -238,7 +238,7 @@ static void __damon_va_init_regions(struct damon_ctx *ctx,
int i;
if (damon_va_three_regions(t, regions)) {
- pr_err("Failed to get three regions of target %lu\n", t->id);
+ pr_debug("Failed to get three regions of target %lu\n", t->id);
return;
}