Skip to content

Commit

Permalink
mm/hugetlb: remove hugetlb_set_page_subpool()
Browse files Browse the repository at this point in the history
All users have been converted to hugetlb_set_folio_subpool() so we can
safely remove this function.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Sidhartha Kumar <[email protected]>
Cc: Mike Kravetz <[email protected]>
Cc: Muchun Song <[email protected]>
Cc: Tarun Sahu <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
sidkumar99 authored and akpm00 committed Jun 23, 2023
1 parent 341d51c commit acc72d5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions include/linux/hugetlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -761,12 +761,6 @@ static inline void hugetlb_set_folio_subpool(struct folio *folio,
folio->_hugetlb_subpool = subpool;
}

static inline void hugetlb_set_page_subpool(struct page *hpage,
struct hugepage_subpool *subpool)
{
hugetlb_set_folio_subpool(page_folio(hpage), subpool);
}

static inline struct hstate *hstate_file(struct file *f)
{
return hstate_inode(file_inode(f));
Expand Down

0 comments on commit acc72d5

Please sign in to comment.