There was an error fetching the commit references. Please try again later.
mm/hugetlb: convert hugetlb fault paths to use alloc_hugetlb_folio()
Change alloc_huge_page() to alloc_hugetlb_folio() by changing all callers to handle the now folio return type of the function. In this conversion, alloc_huge_page_vma() is also changed to alloc_hugetlb_folio_vma() and hugepage_add_new_anon_rmap() is changed to take in a folio directly. Many additions of '&folio->page' are cleaned up in subsequent patches. hugetlbfs_fallocate() is also refactored to use the RCU + page_cache_next_miss() API. Link: https://lkml.kernel.org/r/20230125170537.96973-5-sidhartha.kumar@oracle.com Suggested-by:Mike Kravetz <mike.kravetz@oracle.com> Reported-by:
kernel test robot <lkp@intel.com> Signed-off-by:
Sidhartha Kumar <sidhartha.kumar@oracle.com> Cc: Gerald Schaefer <gerald.schaefer@linux.ibm.com> Cc: John Hubbard <jhubbard@nvidia.com> Cc: Matthew Wilcox <willy@infradead.org> Cc: Muchun Song <songmuchun@bytedance.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org>
Showing
- fs/hugetlbfs/inode.c 21 additions, 19 deletionsfs/hugetlbfs/inode.c
- include/linux/hugetlb.h 4 additions, 4 deletionsinclude/linux/hugetlb.h
- include/linux/rmap.h 1 addition, 1 deletioninclude/linux/rmap.h
- mm/hugetlb.c 101 additions, 100 deletionsmm/hugetlb.c
- mm/mempolicy.c 4 additions, 2 deletionsmm/mempolicy.c
- mm/rmap.c 2 additions, 4 deletionsmm/rmap.c
Please register or sign in to comment