diff mbox series

mm/hugetlb: remove hugetlb_set_page_subpool()

Message ID 20230623054635.279495-1-sidhartha.kumar@oracle.com (mailing list archive)
State New
Headers show
Series mm/hugetlb: remove hugetlb_set_page_subpool() | expand

Commit Message

Sid Kumar June 23, 2023, 5:46 a.m. UTC
All users have been converted to hugetlb_set_folio_subpool() so we can
safely remove this function.

Signed-off-by: Sidhartha Kumar <sidhartha.kumar@oracle.com>
---
 include/linux/hugetlb.h | 5 -----
 1 file changed, 5 deletions(-)

Comments

David Hildenbrand June 27, 2023, 9:47 a.m. UTC | #1
On 23.06.23 07:46, Sidhartha Kumar wrote:
> All users have been converted to hugetlb_set_folio_subpool() so we can
> safely remove this function.
> 
> Signed-off-by: Sidhartha Kumar <sidhartha.kumar@oracle.com>
> ---
>   include/linux/hugetlb.h | 5 -----
>   1 file changed, 5 deletions(-)
> 
> diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h
> index beb7c63d28716..d14676b6d144f 100644
> --- a/include/linux/hugetlb.h
> +++ b/include/linux/hugetlb.h
> @@ -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)
>   {

Reviewed-by: David Hildenbrand <david@redhat.com>
diff mbox series

Patch

diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h
index beb7c63d28716..d14676b6d144f 100644
--- a/include/linux/hugetlb.h
+++ b/include/linux/hugetlb.h
@@ -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)
 {