Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mm: vmscan: add more comments about cache_trim_mode

Add more comments for cache_trim_mode, and the annotations provided by
Johannes Weiner in [1].

Link: https://lore.kernel.org/all/20250314141833.GA1316033@cmpxchg.org/
Link: https://lkml.kernel.org/r/4baad87ba637f1e6f666e9b99b3fdcb7ab39171b.1745225696.git.hezhongkun.hzk@bytedance.com
Signed-off-by: Zhongkun He <hezhongkun.hzk@bytedance.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Yosry Ahmed <yosry.ahmed@linux.dev>
Cc: Yu Zhao <yuzhao@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Zhongkun He and committed by
Andrew Morton
aded729f 68a1436b

+2 -1
+2 -1
mm/vmscan.c
··· 2536 2536 2537 2537 /* 2538 2538 * If there is enough inactive page cache, we do not reclaim 2539 - * anything from the anonymous working right now. 2539 + * anything from the anonymous working right now to make sure 2540 + * a streaming file access pattern doesn't cause swapping. 2540 2541 */ 2541 2542 if (sc->cache_trim_mode) { 2542 2543 scan_balance = SCAN_FILE;