linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] mm/page_alloc: Remove useless parameter of __free_pages_boot_core
@ 2016-03-24  3:51 Li Zhang
  2016-03-24  4:00 ` zhlcindy
  2016-03-29  6:18 ` Pan Xinhui
  0 siblings, 2 replies; 3+ messages in thread
From: Li Zhang @ 2016-03-24  3:51 UTC (permalink / raw)
  To: mgorman, vbabka, to=akpm, khandual, aneesh.kumar
  Cc: linux-mm, linux-kernel, Li Zhang

From: Li Zhang <zhlcindy@linux.vnet.ibm.com>

__free_pages_boot_core has parameter pfn which is not used at all.
So this patch is to make it clean.

Signed-off-by: Li Zhang <zhlcindy@linux.vnet.ibm.com>
---
 mm/page_alloc.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index a762be5..8c0affe 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -1056,8 +1056,7 @@ static void __free_pages_ok(struct page *page, unsigned int order)
 	local_irq_restore(flags);
 }
 
-static void __init __free_pages_boot_core(struct page *page,
-					unsigned long pfn, unsigned int order)
+static void __init __free_pages_boot_core(struct page *page, unsigned int order)
 {
 	unsigned int nr_pages = 1 << order;
 	struct page *p = page;
@@ -1134,7 +1133,7 @@ void __init __free_pages_bootmem(struct page *page, unsigned long pfn,
 {
 	if (early_page_uninitialised(pfn))
 		return;
-	return __free_pages_boot_core(page, pfn, order);
+	return __free_pages_boot_core(page, order);
 }
 
 /*
@@ -1219,12 +1218,12 @@ static void __init deferred_free_range(struct page *page,
 	if (nr_pages == MAX_ORDER_NR_PAGES &&
 	    (pfn & (MAX_ORDER_NR_PAGES-1)) == 0) {
 		set_pageblock_migratetype(page, MIGRATE_MOVABLE);
-		__free_pages_boot_core(page, pfn, MAX_ORDER-1);
+		__free_pages_boot_core(page, MAX_ORDER-1);
 		return;
 	}
 
-	for (i = 0; i < nr_pages; i++, page++, pfn++)
-		__free_pages_boot_core(page, pfn, 0);
+	for (i = 0; i < nr_pages; i++, page++)
+		__free_pages_boot_core(page, 0);
 }
 
 /* Completion tracking for deferred_init_memmap() threads */
-- 
2.1.0

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

* Re: [PATCH 1/1] mm/page_alloc: Remove useless parameter of __free_pages_boot_core
  2016-03-24  3:51 [PATCH 1/1] mm/page_alloc: Remove useless parameter of __free_pages_boot_core Li Zhang
@ 2016-03-24  4:00 ` zhlcindy
  2016-03-29  6:18 ` Pan Xinhui
  1 sibling, 0 replies; 3+ messages in thread
From: zhlcindy @ 2016-03-24  4:00 UTC (permalink / raw)
  To: Li Zhang
  Cc: mgorman, vbabka, akpm, khandual, aneesh.kumar, linux-mm,
	linux-kernel, Li Zhang

Sorry, a mail address in TO list is wrong. Correct it.

On 2016-03-24 11:51, Li Zhang wrote:
> From: Li Zhang <zhlcindy@linux.vnet.ibm.com>
> 
> __free_pages_boot_core has parameter pfn which is not used at all.
> So this patch is to make it clean.
> 
> Signed-off-by: Li Zhang <zhlcindy@linux.vnet.ibm.com>
> ---
>  mm/page_alloc.c | 11 +++++------
>  1 file changed, 5 insertions(+), 6 deletions(-)
> 
> diff --git a/mm/page_alloc.c b/mm/page_alloc.c
> index a762be5..8c0affe 100644
> --- a/mm/page_alloc.c
> +++ b/mm/page_alloc.c
> @@ -1056,8 +1056,7 @@ static void __free_pages_ok(struct page *page,
> unsigned int order)
>  	local_irq_restore(flags);
>  }
> 
> -static void __init __free_pages_boot_core(struct page *page,
> -					unsigned long pfn, unsigned int order)
> +static void __init __free_pages_boot_core(struct page *page, unsigned
> int order)
>  {
>  	unsigned int nr_pages = 1 << order;
>  	struct page *p = page;
> @@ -1134,7 +1133,7 @@ void __init __free_pages_bootmem(struct page
> *page, unsigned long pfn,
>  {
>  	if (early_page_uninitialised(pfn))
>  		return;
> -	return __free_pages_boot_core(page, pfn, order);
> +	return __free_pages_boot_core(page, order);
>  }
> 
>  /*
> @@ -1219,12 +1218,12 @@ static void __init deferred_free_range(struct
> page *page,
>  	if (nr_pages == MAX_ORDER_NR_PAGES &&
>  	    (pfn & (MAX_ORDER_NR_PAGES-1)) == 0) {
>  		set_pageblock_migratetype(page, MIGRATE_MOVABLE);
> -		__free_pages_boot_core(page, pfn, MAX_ORDER-1);
> +		__free_pages_boot_core(page, MAX_ORDER-1);
>  		return;
>  	}
> 
> -	for (i = 0; i < nr_pages; i++, page++, pfn++)
> -		__free_pages_boot_core(page, pfn, 0);
> +	for (i = 0; i < nr_pages; i++, page++)
> +		__free_pages_boot_core(page, 0);
>  }
> 
>  /* Completion tracking for deferred_init_memmap() threads */

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

* Re: [PATCH 1/1] mm/page_alloc: Remove useless parameter of __free_pages_boot_core
  2016-03-24  3:51 [PATCH 1/1] mm/page_alloc: Remove useless parameter of __free_pages_boot_core Li Zhang
  2016-03-24  4:00 ` zhlcindy
@ 2016-03-29  6:18 ` Pan Xinhui
  1 sibling, 0 replies; 3+ messages in thread
From: Pan Xinhui @ 2016-03-29  6:18 UTC (permalink / raw)
  To: Li Zhang, mgorman, vbabka, akpm, khandual, aneesh.kumar
  Cc: linux-mm, linux-kernel, Li Zhang

On 2016a1'03ae??24ae?JPY 11:51, Li Zhang wrote:
> From: Li Zhang <zhlcindy@linux.vnet.ibm.com>
> 
> __free_pages_boot_core has parameter pfn which is not used at all.
> So this patch is to make it clean.
> 
> Signed-off-by: Li Zhang <zhlcindy@linux.vnet.ibm.com>

Reviewed-by: Pan Xinhui <xinhui.pan@linux.vnet.ibm.com>

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

end of thread, other threads:[~2016-03-29  6:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-24  3:51 [PATCH 1/1] mm/page_alloc: Remove useless parameter of __free_pages_boot_core Li Zhang
2016-03-24  4:00 ` zhlcindy
2016-03-29  6:18 ` Pan Xinhui

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).