Re: [uml-devel] duplicated mem_map (struct page) array?

2014-05-31 Thread Richard Weinberger
On Fri, May 30, 2014 at 11:17 AM, Richard Weinberger wrote: > On Fri, May 30, 2014 at 10:24 AM, enjoy mindful > wrote: >> Hi, >> When I'm trace uml kernel with gdb, I found there are two mem_map >> (struct page) arrays. >> >> 1) the first one created in init_maps function, and pointed by *local

[uml-devel] [PATCH] delete unnecessary bootmem struct page array

2014-05-31 Thread Real Name
1) uml kernel bootmem managed through bootmem_data->node_bootmem_map, not struct page array, so it is unnecessary. 2) the struct page array allocate has been pointer by a *loacl* pointer struct page *map in init_maps function. The array can't be access after the init_maps exit. As a result, there

Re: [uml-devel] [PATCH] delete unnecessary bootmem struct page array

2014-05-31 Thread Real Name
On Sun, Jun 01, 2014 at 07:34:42AM +0800, Real Name wrote: I'm very sorry. Please ignore this email, the wrong patch had been sent out. > 1) uml kernel bootmem managed through bootmem_data->node_bootmem_map, > not struct page array, so it is unnecessary. > > 2) the struct page array allocate has

[uml-devel] [PATCH] delete unnecessary bootmem struct page array

2014-05-31 Thread Real Name
1) uml kernel bootmem managed through bootmem_data->node_bootmem_map, not struct page array, so it is unnecessary. 2) the struct page array allocate has been pointer by a *loacl* pointer struct page *map in init_maps function. The array can't be access after the init_maps exit. As a result, there