[PATCH v3 4/5] mm/sparse-vmemmap: drop vmemmap_can_optimize()

Lance Yang lance.yang at linux.dev
Sun Nov 8 21:48:23 PST 2026


On Sat, Nov 07, 2026 at 12:31:21PM +0800, Muchun Song wrote:
>section_vmemmap_optimizable() can already decide whether a section uses
>vmemmap optimization based on the section compound order. The DAX-specific
>vmemmap_can_optimize() helper duplicates that policy, so remove it to
>simplify the code.
>
>Signed-off-by: Muchun Song <songmuchun at bytedance.com>
>---

With the arch fallbacks handled by the previous patches, we can just drop
vmemmap_can_optimize() now ;)

Nothing jumped out at me, so:

Reviewed-by: Lance Yang <lance.yang at linux.dev>



More information about the linux-riscv mailing list