diff mbox series

mm: Remove unused has_isolate_pageblock

Message ID 20241018092235.2764859-1-kaixa@kiloview.com (mailing list archive)
State New
Headers show
Series mm: Remove unused has_isolate_pageblock | expand

Commit Message

Luoxi Li Oct. 18, 2024, 9:22 a.m. UTC
has_isolate_pageblock() has been unused since commit 55612e80e722
("mm: page_alloc: close migratetype race between freeing and stealing")

Remove it.

Signed-off-by: Luoxi Li <kaixa@kiloview.com>
---
 include/linux/page-isolation.h | 8 --------
 1 file changed, 8 deletions(-)

Comments

David Hildenbrand Oct. 18, 2024, 9:24 a.m. UTC | #1
On 18.10.24 11:22, Luoxi Li wrote:
> has_isolate_pageblock() has been unused since commit 55612e80e722
> ("mm: page_alloc: close migratetype race between freeing and stealing")
> 
> Remove it.

Acked-by: David Hildenbrand <david@redhat.com>
Muhammad Usama Anjum Oct. 18, 2024, 3:35 p.m. UTC | #2
On 10/18/24 2:22 PM, Luoxi Li wrote:
> has_isolate_pageblock() has been unused since commit 55612e80e722
> ("mm: page_alloc: close migratetype race between freeing and stealing")
> 
> Remove it.
> 
> Signed-off-by: Luoxi Li <kaixa@kiloview.com>
Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>

> ---
>  include/linux/page-isolation.h | 8 --------
>  1 file changed, 8 deletions(-)
> 
> diff --git a/include/linux/page-isolation.h b/include/linux/page-isolation.h
> index c16db0067090..73dc2c1841ec 100644
> --- a/include/linux/page-isolation.h
> +++ b/include/linux/page-isolation.h
> @@ -3,10 +3,6 @@
>  #define __LINUX_PAGEISOLATION_H
>  
>  #ifdef CONFIG_MEMORY_ISOLATION
> -static inline bool has_isolate_pageblock(struct zone *zone)
> -{
> -	return zone->nr_isolate_pageblock;
> -}
>  static inline bool is_migrate_isolate_page(struct page *page)
>  {
>  	return get_pageblock_migratetype(page) == MIGRATE_ISOLATE;
> @@ -16,10 +12,6 @@ static inline bool is_migrate_isolate(int migratetype)
>  	return migratetype == MIGRATE_ISOLATE;
>  }
>  #else
> -static inline bool has_isolate_pageblock(struct zone *zone)
> -{
> -	return false;
> -}
>  static inline bool is_migrate_isolate_page(struct page *page)
>  {
>  	return false;
Johannes Weiner Oct. 18, 2024, 6:59 p.m. UTC | #3
On Fri, Oct 18, 2024 at 05:22:35PM +0800, Luoxi Li wrote:
> has_isolate_pageblock() has been unused since commit 55612e80e722
> ("mm: page_alloc: close migratetype race between freeing and stealing")
> 
> Remove it.
> 
> Signed-off-by: Luoxi Li <kaixa@kiloview.com>

Thanks!

Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Anshuman Khandual Oct. 22, 2024, 5:32 a.m. UTC | #4
On 10/18/24 14:52, Luoxi Li wrote:
> has_isolate_pageblock() has been unused since commit 55612e80e722
> ("mm: page_alloc: close migratetype race between freeing and stealing")
> 
> Remove it.
> 
> Signed-off-by: Luoxi Li <kaixa@kiloview.com>
> ---
>  include/linux/page-isolation.h | 8 --------
>  1 file changed, 8 deletions(-)
> 
> diff --git a/include/linux/page-isolation.h b/include/linux/page-isolation.h
> index c16db0067090..73dc2c1841ec 100644
> --- a/include/linux/page-isolation.h
> +++ b/include/linux/page-isolation.h
> @@ -3,10 +3,6 @@
>  #define __LINUX_PAGEISOLATION_H
>  
>  #ifdef CONFIG_MEMORY_ISOLATION
> -static inline bool has_isolate_pageblock(struct zone *zone)
> -{
> -	return zone->nr_isolate_pageblock;
> -}
>  static inline bool is_migrate_isolate_page(struct page *page)
>  {
>  	return get_pageblock_migratetype(page) == MIGRATE_ISOLATE;
> @@ -16,10 +12,6 @@ static inline bool is_migrate_isolate(int migratetype)
>  	return migratetype == MIGRATE_ISOLATE;
>  }
>  #else
> -static inline bool has_isolate_pageblock(struct zone *zone)
> -{
> -	return false;
> -}
>  static inline bool is_migrate_isolate_page(struct page *page)
>  {
>  	return false;

Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
diff mbox series

Patch

diff --git a/include/linux/page-isolation.h b/include/linux/page-isolation.h
index c16db0067090..73dc2c1841ec 100644
--- a/include/linux/page-isolation.h
+++ b/include/linux/page-isolation.h
@@ -3,10 +3,6 @@ 
 #define __LINUX_PAGEISOLATION_H
 
 #ifdef CONFIG_MEMORY_ISOLATION
-static inline bool has_isolate_pageblock(struct zone *zone)
-{
-	return zone->nr_isolate_pageblock;
-}
 static inline bool is_migrate_isolate_page(struct page *page)
 {
 	return get_pageblock_migratetype(page) == MIGRATE_ISOLATE;
@@ -16,10 +12,6 @@  static inline bool is_migrate_isolate(int migratetype)
 	return migratetype == MIGRATE_ISOLATE;
 }
 #else
-static inline bool has_isolate_pageblock(struct zone *zone)
-{
-	return false;
-}
 static inline bool is_migrate_isolate_page(struct page *page)
 {
 	return false;