[PATCH] mm: remove clear_page_idle()

Xueshi Hu posted 1 patch 2 years, 7 months ago
include/linux/page_idle.h | 5 -----
1 file changed, 5 deletions(-)
[PATCH] mm: remove clear_page_idle()
Posted by Xueshi Hu 2 years, 7 months ago
All callers have now been converted to call folio_clear_idle().

Signed-off-by: Xueshi Hu <xueshi.hu@smartx.com>
---
 include/linux/page_idle.h | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/include/linux/page_idle.h b/include/linux/page_idle.h
index 5cb7bd2078ec..d8f344840643 100644
--- a/include/linux/page_idle.h
+++ b/include/linux/page_idle.h
@@ -144,9 +144,4 @@ static inline void set_page_idle(struct page *page)
 {
 	folio_set_idle(page_folio(page));
 }
-
-static inline void clear_page_idle(struct page *page)
-{
-	folio_clear_idle(page_folio(page));
-}
 #endif /* _LINUX_MM_PAGE_IDLE_H */
-- 
2.40.1
Re: [PATCH] mm: remove clear_page_idle()
Posted by David Hildenbrand 2 years, 7 months ago
On 12.07.23 15:49, Xueshi Hu wrote:
> All callers have now been converted to call folio_clear_idle().
> 
> Signed-off-by: Xueshi Hu <xueshi.hu@smartx.com>
> ---
>   include/linux/page_idle.h | 5 -----
>   1 file changed, 5 deletions(-)
> 
> diff --git a/include/linux/page_idle.h b/include/linux/page_idle.h
> index 5cb7bd2078ec..d8f344840643 100644
> --- a/include/linux/page_idle.h
> +++ b/include/linux/page_idle.h
> @@ -144,9 +144,4 @@ static inline void set_page_idle(struct page *page)
>   {
>   	folio_set_idle(page_folio(page));
>   }
> -
> -static inline void clear_page_idle(struct page *page)
> -{
> -	folio_clear_idle(page_folio(page));
> -}
>   #endif /* _LINUX_MM_PAGE_IDLE_H */

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

-- 
Cheers,

David / dhildenb