Skip to contentSkip to conversation

mm/hugetlb: remove hugetlb_set_page_subpool()

PATCH Superseded Sidhartha Kumar 2 participants 2 messages Jun 23, 2023 – Jun 27, 2023

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm/hugetlb: remove hugetlb_set_page_subpool()

All users have been converted to hugetlb_set_folio_subpool() so we can safely remove this function.

---
 include/linux/hugetlb.h | 5 -----
 1 file changed, 5 deletions(-)
include/linux/hugetlb.h +0 -5
index beb7c63d28716..d14676b6d144f 100644
@@ -761,11 +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)
 {
Signature · 1 line
2.41.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · Sidhartha Kumar

All users have been converted to hugetlb_set_folio_subpool() so we can safely remove this function.

---
  include/linux/hugetlb.h | 5 -----
  1 file changed, 5 deletions(-)
include/linux/hugetlb.h +0 -0
index beb7c63d28716..d14676b6d144f 100644
@@ -761,11 +761,6 @@ static inline void hugetlb_set_folio_subpool(struct folio *folio,
  	folio->_hugetlb_subpool = subpool;

include/linux/hugetlb.h static inline void hugetlb_set_folio_subpool(struct folio *folio, · line 766

Quoted 10 lines
include/linux/hugetlb.h +0 -5
  }
 
-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)
  {
Signature · 3 lines
Cheers,

David / dhildenb