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
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