mm/hugetlb: remove hugetlb_page_subpool()
Subsystems (2)
PATCH 1/1 mm/hugetlb: remove hugetlb_page_subpool()
All users of hugetlb_page_subpool() have been converted to use the folio equivalent. This function can be safely removed.
Signed-off-by Sidhartha Kumar <[email protected]>
--- include/linux/hugetlb.h | 13 ------------- 1 file changed, 13 deletions(-)
include/linux/hugetlb.h +0 -13
@@ -755,14 +755,6 @@ static inline struct hugepage_subpool *hugetlb_folio_subpool(struct folio *folioreturn 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) {
@@ -1029,11 +1021,6 @@ static inline struct hugepage_subpool *hugetlb_folio_subpool(struct folio *folioreturn 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) {
Signature · 1 line
2.40.1
Quoted 7 lines · Sidhartha Kumar
All users of
hugetlb_page_subpool()have been converted to use the folio equivalent. This function can be safely removed.Signed-off-by Sidhartha Kumar <[email protected]>--- include/linux/hugetlb.h | 13 ------------- 1 file changed, 13 deletions(-)
Thanks!
Reviewed-by Mike Kravetz <[email protected]>
Signature · 1 line
Mike Kravetz
Quoted 35 lines
include/linux/hugetlb.h +0
-13@@ -755,14 +755,6 @@ static inline struct hugepage_subpool *hugetlb_folio_subpool(struct folio *folioreturn 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) {@@ -1029,11 +1021,6 @@ static inline struct hugepage_subpool *hugetlb_folio_subpool(struct folio *folioreturn 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) {Signature · 1 line
2.40.1
Quoted 29 lines · Sidhartha Kumar
All users of
hugetlb_page_subpool()have been converted to use the folio equivalent. This function can be safely removed.Signed-off-by Sidhartha Kumar <[email protected]>--- include/linux/hugetlb.h | 13 ------------- 1 file changed, 13 deletions(-)include/linux/hugetlb.h +0
-8@@ -755,14 +755,6 @@ static inline struct hugepage_subpool *hugetlb_folio_subpool(struct folio *folioreturn 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) {@@ -1029,11 +1021,6 @@ static inline struct hugepage_subpool *hugetlb_folio_subpool(struct folio *folioreturn NULL ;
include/linux/hugetlb.h static inline struct hugepage_subpool *hugetlb_folio_subpool(struct folio *folio · line 1026
Quoted 10 lines
include/linux/hugetlb.h +0
-5} -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) {
Reviewed-by David Hildenbrand <[email protected]>
Signature · 3 lines
Thanks, David / dhildenb