mm/hugetlb: remove hugetlb_set_page_subpool()
Subsystems (2)
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.
Signed-off-by Sidhartha Kumar <[email protected]>
---
v1 -> v2:
get rid of extra newline
include/linux/hugetlb.h | 6 ------ 1 file changed, 6 deletions(-)
include/linux/hugetlb.h +0 -6
@@ -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
Quoted 10 lines · Sidhartha Kumar
All users have been converted to
hugetlb_set_folio_subpool()so we can safely remove this function.Signed-off-by Sidhartha Kumar <[email protected]>---
v1 -> v2:
get rid of extra newlineinclude/linux/hugetlb.h | 6 ------ 1 file changed, 6 deletions(-)
Thanks,
Reviewed-by Mike Kravetz <[email protected]>
Signature · 1 line
Mike Kravetz
Quoted 21 lines
include/linux/hugetlb.h +0
-6@@ -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