Re: [PATCH v3] mm/huge_memory: unlock i_mmap_rwsem before releasing after-split folios
From: Matthew Wilcox
Date: Sun Jul 19 2026 - 23:35:20 EST
On Fri, Jul 17, 2026 at 07:58:51PM -0700, Andrew Morton wrote:
> (why is mapping_set_update() a) a macro and b) undocumented?)
commit 62e72d2cf702
So make madvise(..., MADV_COLLAPSE) also call xas_set_lru() to pass the
list_lru which we may want to insert xa_node into later. And move
mapping_set_update to mm/internal.h, and turn into a macro to avoid
including extra headers in mm/internal.h.
Take it up with Kairui. And whoever it was added that patch to
linux-mm.