[Devel] [PATCH hci-8.2 v2 0/3] mm/memcontrol: tidy up the memory.numa_migrate code

Konstantin Khorenko khorenko at virtuozzo.com
Tue Nov 17 19:27:31 MSK 2026


On Tue, 17 Nov 2026 17:24:42 +0100, Konstantin Khorenko wrote:
> mm/memcontrol: tidy up the memory.numa_migrate code
> 
> Leftovers found while fixing VSTOR-151607, where the allocator of
> memory.numa_migrate had fallen behind the upstream function it was
> copied from. Nothing here changes behaviour.
> 
> - 1: update_lru_sizes() lost its only caller when the isolation loop
>   switched to lruvec_del_folio(); static __always_inline, so no
>   warning ever came.
> - 2: the comment in the isolation loop told the rebase history of the
>   code. It now names the upstream functions the loop and the allocator
>   copy (isolate_migratepages_block(), isolate_lru_folios(),
>   alloc_migration_target()), which is what the next rebase has to
>   compare against. The commented-out conditions and the pre-folio name
>   of the allocator go with it.
> - 3: the comment of memcg_numa_isolate_pages() speaks of pages only,
>   while the loop stops at @nr_to_scan folios scanned or @nr_to_scan
>   pages isolated and returns the number of folios scanned.
> 
> [...]

Applied to branch-rh10-6.12.0-211.75.1.26.x.vz10-ovz, will be released in rh10-6.12.0-211.75.1.24.3.vz10, thanks!

[1/3] mm/memcontrol: drop the unused update_lru_sizes()
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/d7d54d7c0e0f
[2/3] mm/memcontrol: say where the numa_migrate code comes from
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/93b7d76dbf81
[3/3] mm/memcontrol: say what memcg_numa_isolate_pages() limits
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/5d9d7af3eef1

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team




More information about the Devel mailing list