The patch titled Subject: mm-vmscan-do-not-turn-on-cache_trim_mode-if-it-doesnt-work-fix has been added to the -mm mm-unstable branch. Its filename is mm-vmscan-do-not-turn-on-cache_trim_mode-if-it-doesnt-work-fix.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-vmscan-do-not-turn-on-cache_trim_mode-if-it-doesnt-work-fix.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: mm-vmscan-do-not-turn-on-cache_trim_mode-if-it-doesnt-work-fix Date: Fri Feb 23 05:14:42 PM PST 2024 simplofy boolean expression, per ying.huang@xxxxxxxxx Cc: Byungchul Park <byungchul@xxxxxx> Cc: "Huang, Ying" <ying.huang@xxxxxxxxx> Cc: Yu Zhao <yuzhao@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/vmscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/vmscan.c~mm-vmscan-do-not-turn-on-cache_trim_mode-if-it-doesnt-work-fix +++ a/mm/vmscan.c @@ -2277,7 +2277,7 @@ static void prepare_scan_control(pg_data */ file = lruvec_page_state(target_lruvec, NR_INACTIVE_FILE); if (file >> sc->priority && !(sc->may_deactivate & DEACTIVATE_FILE) && - !(sc->cache_trim_mode && !sc->reclaimable && sc->priority <= 1)) + (!sc->cache_trim_mode || sc->reclaimable || sc->priority > 1)) sc->cache_trim_mode = 1; else sc->cache_trim_mode = 0; _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are kexec-split-crashkernel-reservation-code-out-from-crash_corec-fix.patch arch-crash-move-arch_crash_save_vmcoreinfo-out-to-file-vmcore_infoc-fix.patch mm-swapfile-__swap_duplicate-drop-redundant-write_once-on-swap_map-for-err-cases-fix.patch hugetlb-parallelize-1g-hugetlb-initialization-fix.patch mm-vmscan-do-not-turn-on-cache_trim_mode-if-it-doesnt-work-fix.patch