[PATCH v2] mm, vmscan: don't turn on cache_trim_mode at high scan priorities

From: Byungchul Park
Date: Thu Feb 22 2024 - 02:09:45 EST


Changes from v1:
1. Add a comment describing why this change is necessary in code
and rewrite the commit message with how to reproduce and what
the result is using vmstat. (feedbacked by Andrew Morton and
Yu Zhao)
2. Change the condition to avoid cache_trim_mode from
'sc->priority != 1' to 'sc->priority > 1' to reflect cases
where the priority goes to zero all the way. (feedbacked by
Yu Zhao)

--->8---