Re: [PATCH v5] jbd2: fix shrinker scan budget accounting in jbd2_journal_shrink_scan()
From: Theodore Ts'o
Date: Thu Nov 19 2026 - 09:49:06 EST
On Thu, 01 Oct 2026 15:43:43 +0800, Qiliang Yuan wrote:
> do_shrink_slab() reads count_objects() once per invocation to derive
> a one-shot scan budget, then calls scan_objects() repeatedly until
> that budget is exhausted or scan_objects() returns SHRINK_STOP.
> include/linux/shrinker.h documents that scan_objects() "should track
> its actual progress" in sc->nr_scanned, so do_shrink_slab() can tell
> when there is nothing left to examine and stop early.
>
> [...]
Applied, thanks!
[1/1] jbd2: fix shrinker scan budget accounting in jbd2_journal_shrink_scan()
commit: 9e6f36987aafbbf10b87c153fad0337dd2e611e1
Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>