v2 2026-07-10

hugetlbfs使用通用读迭代器 · v2

Matthew Wilcox 提交 v2 系列,用 generic_file_read_iter 替代 hugetlbfs 实现,收到回复讨论。

本次提交拆成 10 个子 patch:mm: Rename folio_contain_hwpoison_page() to folio_has_hwpoison_page()、hugetlb: Mark some function arguments as const、filemap: Remove checks in mapping_set_folio_order_range()、hugetlb: Set mapping folio order、memory-failure: Remove raw_hwp_list_head() 等共 10 项改动。

原始补丁链接

子 Patch(10)

1/10
mm: Rename folio_contain_hwpoison_page() to folio_has_hwpoison_page()
[Re: [PATCH v2 01/10] mm: Rename folio_contain_hwpoison_page() to folio_has_hwpoison_page()] On Thu, 9 Jul 2026 19:47:2
原始邮件 ↗
2/10
hugetlb: Mark some function arguments as const
[Re: [PATCH v2 02/10] hugetlb: Mark some function arguments as const] On Thu, 9 Jul 2026 19:47:30 +0100 "Matthew Wilcox
原始邮件 ↗
3/10
filemap: Remove checks in mapping_set_folio_order_range()
[Re: [PATCH v2 03/10] filemap: Remove checks in mapping_set_folio_order_range()] On Thu, 9 Jul 2026 19:47:31 +0100 "Mat
原始邮件 ↗
4/10
hugetlb: Set mapping folio order
[Re: [PATCH v2 04/10] hugetlb: Set mapping folio order] On Thu, 9 Jul 2026 19:47:32 +0100 "Matthew Wilcox (Oracle)" <wi
原始邮件 ↗
5/10
memory-failure: Remove raw_hwp_list_head()
[Re: [PATCH v2 05/10] memory-failure: Remove raw_hwp_list_head()] On Thu, 9 Jul 2026 19:47:33 +0100 "Matthew Wilcox (Or
原始邮件 ↗
6/10
memory-failure: Prevent UAF in raw_hwp_page list
[Re: [PATCH v2 06/10] memory-failure: Prevent UAF in raw_hwp_page list] On Thu, 9 Jul 2026 19:47:34 +0100 "Matthew Wilcox (Oracle)" <willy@infradead.org> wrote: > Most accesses to the raw_hwp_page li
原始邮件 ↗
7/10
mm: Handle hugetlb correctly in is_page_hwpoison()
[mm: Handle hugetlb correctly in is_page_hwpoison()] Checking to see whether a page inside a hugetlb folio is hardware p
原始邮件 ↗
8/10
filemap: Add hwpoison handling to filemap_read()
[filemap: Add hwpoison handling to filemap_read()] From: Jane Chu <jane.chu@oracle.com> Add hwpoison handling to filema
原始邮件 ↗
9/10
filemap: Add support for authoritative mappings
在filemap中引入权威映射概念,使映射能跟踪所有folio,用于一致性保证。
原始邮件 ↗
10/10
hugetlb: replace hugetlbfs_read_iter() with generic_file_read_iter()
[hugetlb: replace hugetlbfs_read_iter() with generic_file_read_iter()] From: Jane Chu <jane.chu@oracle.com> generic_fil
原始邮件 ↗