v3
2026-09-18
抽象 VMA 匿名反向映射检查 · v3
新增 vma_has_anon_rmap() 抽象 VMA 是否带匿名反向映射的判断,并将 vma_assert_stabilised() 等改为 const 参数以消除 KCSAN 报告。
原始补丁链接
子 Patch(3)
1/3
mm/vma: const-ify vma_assert_stabilised() and associated functions
[mm/vma: const-ify vma_assert_stabilised() and associated functions] The vma pointers are not modified in any of these functions so make it official by const-ify them. Propagate this throughout the c
2/3
mm: implement and use vma_has_anon_rmap(), silence KCSAN
[mm: implement and use vma_has_anon_rmap(), silence KCSAN] [patchwork series v3] submitter=Lorenzo Stoakes (ARM) patches (3): [v3,1/3] mm/vma: const-ify vma_assert_stabilised() and associated functi
3/3
mm: update comments to refer to anon rmap rather than anon_vma
[mm: update comments to refer to anon rmap rather than anon_vma] Now that vma_has_anon_rmap() abstracts whether a VMA has an anonymous reverse mapping, remove references to anon_vma and instead refere