Re: [PATCH] mm: Inline vma_needs_copy

From: Yunshui Jiang
Date: Wed Jun 18 2025 - 23:30:57 EST


Initially, I added explicit inline hints in the code precisely because some
newer compilers might ignore such suggestions.


Based on everyone's feedback, I rechecked my compiler configurations

—ARM64 uses GCC 12.3, while x86 uses GCC 12.4. By analyzing the

disassembly of vmlinux via objdump, I confirmed that vma_needs_copy

is indeed inlined in both cases. In this case the score difference in spawn

might just be due to fluctuations.



Leave it unchanged might be better. If we later encounter issues where

older compilers fail to inline single-caller cases or multiple calls are

incurred due to code changes, we could re-discuss whether manual

intervention is needed.



Best regards,
Yunshui Jiang