Re: [PATCH mm-unstable RFC v4 0/7] mm: add huge pfnmap support for remap_pfn_range()
From: Yin Tirui
Date: Tue May 26 2026 - 22:58:12 EST
On 5/26/2026 11:33 PM, Lorenzo Stoakes wrote:
Allow me to be mildly pedantic (sorry :)
One thing I'd like to highlight here is that remap_pfn_range() is, in the long
run, deprecated.
mmap_prepare callbacks will indicate a PFN remap mmap_action, which will do the
heavy lifting (see [0]).
Thanks, I missed that mmap_action_remap() may also reach the same common PFN remap
path.
So perhaps worth referring to 'PFN remapping' or something?
(Since we already have mmap_prepare() in use, it's also kinda inaccurate to
say remap_pfn_range() :)
Agreed, describing this as remap_pfn_range()support is indeed inaccurate. I'll reword it.
Not at all, this is really helpful.
[0]: https://www.kernel.org/doc/html/next/filesystems/mmap_prepare.html
Sorry, this is pretty nitpicky :)
--
Cheers, Lorenzo
Yin Tirui