Re: [PATCH v2, part3 01/12] mm: enhance free_reserved_area() to support poisoning memory with zero

2013-03-16 Thread Jiang Liu
On 03/17/2013 01:37 AM, Geert Uytterhoeven wrote: > On Sat, Mar 16, 2013 at 6:03 PM, Jiang Liu wrote: >> --- a/mm/page_alloc.c >> +++ b/mm/page_alloc.c >> @@ -5130,13 +5130,13 @@ unsigned long free_reserved_area(unsigned long >> start, unsigned long end, >> pos = start =

Re: [PATCH v2, part3 01/12] mm: enhance free_reserved_area() to support poisoning memory with zero

2013-03-16 Thread Geert Uytterhoeven
On Sat, Mar 16, 2013 at 6:03 PM, Jiang Liu wrote: > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -5130,13 +5130,13 @@ unsigned long free_reserved_area(unsigned long start, > unsigned long end, > pos = start = PAGE_ALIGN(start); > end &= PAGE_MASK; > for (pages = 0;

[PATCH v2, part3 01/12] mm: enhance free_reserved_area() to support poisoning memory with zero

2013-03-16 Thread Jiang Liu
Address comments from last round of code review. 1) Enhance free_reserved_area() to support poisoning memory with zero. This could be used to get rid of poison_init_mem() on ARM64. 2) Other minor fixes. Signed-off-by: Jiang Liu Cc: Geert Uytterhoeven --- arch/alpha/kernel/sys_nautilus.c |

[PATCH v2, part3 01/12] mm: enhance free_reserved_area() to support poisoning memory with zero

2013-03-16 Thread Jiang Liu
Address comments from last round of code review. 1) Enhance free_reserved_area() to support poisoning memory with zero. This could be used to get rid of poison_init_mem() on ARM64. 2) Other minor fixes. Signed-off-by: Jiang Liu jiang@huawei.com Cc: Geert Uytterhoeven ge...@linux-m68k.org

Re: [PATCH v2, part3 01/12] mm: enhance free_reserved_area() to support poisoning memory with zero

2013-03-16 Thread Geert Uytterhoeven
On Sat, Mar 16, 2013 at 6:03 PM, Jiang Liu liu...@gmail.com wrote: --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -5130,13 +5130,13 @@ unsigned long free_reserved_area(unsigned long start, unsigned long end, pos = start = PAGE_ALIGN(start); end = PAGE_MASK; for

Re: [PATCH v2, part3 01/12] mm: enhance free_reserved_area() to support poisoning memory with zero

2013-03-16 Thread Jiang Liu
On 03/17/2013 01:37 AM, Geert Uytterhoeven wrote: On Sat, Mar 16, 2013 at 6:03 PM, Jiang Liu liu...@gmail.com wrote: --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -5130,13 +5130,13 @@ unsigned long free_reserved_area(unsigned long start, unsigned long end, pos = start =