Skip to content

Commit

Permalink
mm/damon/vaddr: remove an unnecessary warning message
Browse files Browse the repository at this point in the history
The DAMON virtual address space monitoring primitive prints a warning
message for wrong DAMOS action.  However, it is not essential as the
code returns appropriate failure in the case.  This commit removes the
message to make the log clean.

Link: https://lkml.kernel.org/r/[email protected]
Fixes: 6dea8ad ("mm/damon/vaddr: support DAMON-based Operation Schemes")
Signed-off-by: SeongJae Park <[email protected]>
Reviewed-by: Muchun Song <[email protected]>
Cc: Brendan Higgins <[email protected]>
Cc: Shuah Khan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
sjp38 authored and torvalds committed Dec 11, 2021
1 parent 1afaf5c commit 09e1228
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mm/damon/vaddr.c
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,6 @@ int damon_va_apply_scheme(struct damon_ctx *ctx, struct damon_target *t,
case DAMOS_STAT:
return 0;
default:
pr_warn("Wrong action %d\n", scheme->action);
return -EINVAL;
}

Expand Down

0 comments on commit 09e1228

Please sign in to comment.