linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] mm/hugetlb: remove hugetlb_set_page_subpool()
@ 2023-06-23  5:49 Sidhartha Kumar
  2023-07-03 18:32 ` Mike Kravetz
  0 siblings, 1 reply; 2+ messages in thread
From: Sidhartha Kumar @ 2023-06-23  5:49 UTC (permalink / raw)
  To: linux-kernel, linux-mm
  Cc: akpm, tsahu, muchun.song, mike.kravetz, Sidhartha Kumar

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>
---
v1 -> v2:
	get rid of extra newline
	
 include/linux/hugetlb.h | 6 ------
 1 file changed, 6 deletions(-)

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



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] mm/hugetlb: remove hugetlb_set_page_subpool()
  2023-06-23  5:49 [PATCH v2] mm/hugetlb: remove hugetlb_set_page_subpool() Sidhartha Kumar
@ 2023-07-03 18:32 ` Mike Kravetz
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Kravetz @ 2023-07-03 18:32 UTC (permalink / raw)
  To: Sidhartha Kumar; +Cc: linux-kernel, linux-mm, akpm, tsahu, muchun.song

On 06/22/23 22:49, 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>
> ---
> v1 -> v2:
> 	get rid of extra newline
> 	
>  include/linux/hugetlb.h | 6 ------
>  1 file changed, 6 deletions(-)

Thanks,

Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>

-- 
Mike Kravetz

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-03 18:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-23  5:49 [PATCH v2] mm/hugetlb: remove hugetlb_set_page_subpool() Sidhartha Kumar
2023-07-03 18:32 ` Mike Kravetz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).