Re: [PATCH v8 0/6] mm/vmalloc: free unused pages on vrealloc() shrink

From: Andrew Morton

Date: Fri Mar 27 2026 - 14:38:49 EST


On Fri, 27 Mar 2026 15:18:36 +0530 Shivam Kalra via B4 Relay <devnull+shivamkalra98.zohomail.in@xxxxxxxxxx> wrote:

> This series implements the TODO in vrealloc() to unmap and free unused
> pages when shrinking across a page boundary.

Thanks. I'd prefer to defer this until the next -rc cycle
(https://lkml.kernel.org/r/20260323202941.08ddf2b0411501cae801ab4c@xxxxxxxxxxxxxxxxxxxx).
If Ulad would prefer that we push ahead then OK.

Are we able to describe how much memory this change might save under
various scenarios? If the savings are impressively large then that
would get attention.

AI review might have found a couple of things, one pre-existing:
https://sashiko.dev/#/patchset/20260327-vmalloc-shrink-v8-0-cc6b57059ed7@xxxxxxxxxxx