Skip to content

Commit

Permalink
mm/hugetlb: remove hugetlb_page_subpool()
Browse files Browse the repository at this point in the history
All users of hugetlb_page_subpool() have been converted to use the folio
equivalent.  This function can be safely removed.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Sidhartha Kumar <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Reviewed-by: Mike Kravetz <[email protected]>
Cc: Matthew Wilcox (Oracle) <[email protected]>
Cc: Muchun Song <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
sidkumar99 authored and akpm00 committed Jun 9, 2023
1 parent ecbb490 commit f6797ad
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions include/linux/hugetlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -757,14 +757,6 @@ static inline struct hugepage_subpool *hugetlb_folio_subpool(struct folio *folio
return folio->_hugetlb_subpool;
}

/*
* hugetlb page subpool pointer located in hpage[2].hugetlb_subpool
*/
static inline struct hugepage_subpool *hugetlb_page_subpool(struct page *hpage)
{
return hugetlb_folio_subpool(page_folio(hpage));
}

static inline void hugetlb_set_folio_subpool(struct folio *folio,
struct hugepage_subpool *subpool)
{
Expand Down Expand Up @@ -1031,11 +1023,6 @@ static inline struct hugepage_subpool *hugetlb_folio_subpool(struct folio *folio
return NULL;
}

static inline struct hugepage_subpool *hugetlb_page_subpool(struct page *hpage)
{
return NULL;
}

static inline int isolate_or_dissolve_huge_page(struct page *page,
struct list_head *list)
{
Expand Down

0 comments on commit f6797ad

Please sign in to comment.