Skip to content

Commit acc72d5

Browse files
Sidhartha Kumarakpm00
authored andcommitted
mm/hugetlb: remove hugetlb_set_page_subpool()
All users have been converted to hugetlb_set_folio_subpool() so we can safely remove this function. Link: https://lkml.kernel.org/r/20230623054948.280627-1-sidhartha.kumar@oracle.com Signed-off-by: Sidhartha Kumar <sidhartha.kumar@oracle.com> Cc: Mike Kravetz <mike.kravetz@oracle.com> Cc: Muchun Song <muchun.song@linux.dev> Cc: Tarun Sahu <tsahu@linux.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 341d51c commit acc72d5

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

include/linux/hugetlb.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -761,12 +761,6 @@ static inline void hugetlb_set_folio_subpool(struct folio *folio,
761761
folio->_hugetlb_subpool = subpool;
762762
}
763763

764-
static inline void hugetlb_set_page_subpool(struct page *hpage,
765-
struct hugepage_subpool *subpool)
766-
{
767-
hugetlb_set_folio_subpool(page_folio(hpage), subpool);
768-
}
769-
770764
static inline struct hstate *hstate_file(struct file *f)
771765
{
772766
return hstate_inode(file_inode(f));

0 commit comments

Comments
 (0)