Skip to contentSkip to conversation

mm/hugetlb: remove hugetlb_set_page_subpool()

PATCH Applied Sidhartha Kumar 2 participants 2 messages Jun 23, 2023 – Jul 3, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 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.

---
v1 -> v2:
get rid of extra newline

 include/linux/hugetlb.h | 6 ------
 1 file changed, 6 deletions(-)
include/linux/hugetlb.h +0 -6
index beb7c63d28716..ca3c8e10f24a0 100644
@@ -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));
Signature · 1 line
2.41.0
Reviewed-by on v2 1/1
#1 lore raw
Quoted 10 lines · Sidhartha Kumar

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

---
v1 -> v2:
get rid of extra newline

 include/linux/hugetlb.h | 6 ------
 1 file changed, 6 deletions(-)

Thanks,

Signature · 1 line
Mike Kravetz
Quoted 21 lines
include/linux/hugetlb.h +0 -6
index beb7c63d28716..ca3c8e10f24a0 100644
@@ -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));
Signature · 1 line
2.41.0