Use generic_file_read_iter() in hugetlbfs
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v9 Latest15 patches 38 repliesIn review
- v815 patches 30 repliesSuperseded
- v713 patches 17 repliesSuperseded
Earlier versions · 6
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v6 | 12 patches | 8 replies | Superseded | |
| v5 | 12 patches | 6 replies | Superseded | |
| v4 | 14 patches | 23 replies | Superseded | |
| v3 | 9 patches | 2 replies | Superseded | |
| v2 | 10 patches | 15 replies | Superseded | |
| v1 | 4 patches | 3 replies | Superseded |
Changes from v7 from the cover letter
- Fix the KPF_HWPOISON blooper
- Expand HVO in a comment
- Collect R-b tags from Gregory & Jane
Patches in v9 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/15 | memory-failure: Fix hardware poison check in unpoison_memory() againmm/ | +3 | 0 replies | |
| 2/15 | memory-failure: Prevent hugetlb freeing during unpoisoninginclude/ mm/ | +24 | 1 reply | |
| 3/15 | mm: Rename folio_contain_hwpoison_page() to folio_has_hwpoison_page()include/ mm/ mm/ +2 more | +6 | 1 reply | |
| 4/15 | hugetlb: Mark some function arguments as constinclude/ mm/ | +10 | 0 replies | |
| 5/15 | guest_memfd: Use folio_has_hwpoisoned_page()virt/ | +1 | 3 replies | |
| 6/15 | kpageflags: Use is_page_hwpoison() to set KPF_HWPOISONfs/ | +2 | 3 replies | |
| 7/15 | hugetlb: Move poison to pages before clearing hugetlb page typemm/ | +18 | 0 replies | |
| 8/15 | hugetlb: Use the has_hwpoisoned flagfs/ fs/ include/ +4 more | +120 | 13 replies | |
| 9/15 | mm: Remove locking mf_mutex in is_raw_hwpoison_page_in_hugepage()fs/ include/ include/ +1 more | +61 | 2 replies | |
| 10/15 | mm: Check individual hugetlb pages for poisoninclude/ mm/ | +39 | 1 reply | |
| 11/15 | filemap: Add hwpoison handling to filemap_read()include/ include/ mm/ | +42 | 4 replies | |
| 12/15 | filemap: Remove checks in mapping_set_folio_order_range()include/ | +14 | 1 reply | |
| 13/15 | hugetlb: Set mapping folio orderfs/ | +11 | 2 replies | |
| 14/15 | filemap: Add support for authoritative mappingsinclude/ mm/ | +29 | 4 replies | |
| 15/15 | hugetlb: replace hugetlbfs_read_iter() with generic_file_read_iter()fs/ | +2 | 1 reply |
Reviews trailers per patch
14 of 15 patches have a Reviewed-by or Acked-by.
| Patch | Jane Chu | Gregory Price (Meta) | Miaohe Lin | Usama Arif | Sean Christopherson | Ackerley Tng | David Hildenbrand (Arm) | Pedro Falcato |
|---|---|---|---|---|---|---|---|---|
| 1/15 | R-b | R-b | R-b | |||||
| 2/15 | R-b | R-b | R-b | |||||
| 3/15 | R-b | R-b | R-b | A-b | A-b | |||
| 4/15 | R-b | R-b | R-b | A-b | ||||
| 5/15 | R-b | R-b | A-b | R-b | A-b | |||
| 6/15 | R-b | R-b | ||||||
| 7/15 | R-b | R-b | R-b | |||||
| 8/15 | R-b | R-b | R-b | |||||
| 9/15 | R-b | R-b | R-b | |||||
| 10/15 | R-b | R-b | R-b | |||||
| 11/15 | ||||||||
| 12/15 | R-b | R-b | R-b | |||||
| 13/15 | R-b | R-b | R-b | R-b | ||||
| 14/15 | R-b | R-b | ||||||
| 15/15 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 8 reviewers.
Cover letter [PATCH v9 00/15] Use generic_file_read_iter() in hugetlbfs
This set of patches are separated out from Jane's earlier series.
https://lore.kernel.org/linux-mm/[email protected]/
We need three things to use filemap_read_iter() instead of a hugetlbfs specific read_iter: hwpoison handling, treating gaps in the pagecache as holes, and having hugetlb set the folio size in the mapping. hwopison handling turned out to need a lot of prep work; the other two things are fairly straightforward.
Sashiko complains that the implementation of AS_AUTHORITATIVE is incomplete, but hugetlbfs doesn't use any of that functionality. We'll add it when we need it, either when hugetlbfs uses it, or when we convert shmem to use filemap.
v8 here:
https://lore.kernel.org/linux-mm/[email protected]/
Changes from v7:
- Fix the KPF_HWPOISON blooper
- Expand HVO in a comment
- Collect R-b tags from Gregory & Jane
Jane Chu (2):
filemap: Add hwpoison handling to filemap_read()
hugetlb: replace hugetlbfs_read_iter() with generic_file_read_iter()
Matthew Wilcox (Oracle) (13):
memory-failure: Fix hardware poison check in unpoison_memory() again
memory-failure: Prevent hugetlb freeing during unpoisoning
mm: Rename folio_contain_hwpoison_page() to folio_has_hwpoison_page()
hugetlb: Mark some function arguments as const
guest_memfd: Use folio_has_hwpoisoned_page()
kpageflags: Use is_page_hwpoison() to set KPF_HWPOISON
hugetlb: Move poison to pages before clearing hugetlb page type
hugetlb: Use the has_hwpoisoned flag
mm: Remove locking mf_mutex in is_raw_hwpoison_page_in_hugepage()
mm: Check individual hugetlb pages for poison
filemap: Remove checks in mapping_set_folio_order_range()
hugetlb: Set mapping folio order
filemap: Add support for authoritative mappings
fs/Kconfig | 2 +- fs/hugetlbfs/inode.c | 123 +++-------------------- fs/proc/page.c | 8 +- include/linux/hugetlb.h | 43 +++++--- include/linux/mm_types.h | 4 +- include/linux/page-flags.h | 64 ++++++++++-- include/linux/pagemap.h | 45 +++++---- mm/Kconfig | 6 +- mm/filemap.c | 51 +++++++++- mm/huge_memory.c | 2 +- mm/hugetlb.c | 41 ++++---- mm/memory-failure.c | 197 +++++++++++++++++++++++++------------ mm/memory_hotplug.c | 2 +- mm/rmap.c | 43 +++++--- mm/shmem.c | 2 +- mm/vmscan.c | 2 +- virt/kvm/guest_memfd.c | 2 +- 17 files changed, 368 insertions(+), 269 deletions(-)
Signature · 1 line
2.47.3