RE: [PATCH v3] mm/vmalloc: terminate searching since one node found

2017-07-18 Thread 黄朝阳
Kirill A. Shutemov; Andrey Ryabinin; linux...@kvack.org; linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] mm/vmalloc: terminate searching since one node found On 07/18/2017 04:31 PM, Zhaoyang Huang (黄朝阳) wrote: > > It is no need to find the very beginning of the area within > alloc_vmap_

RE: [PATCH v3] mm/vmalloc: terminate searching since one node found

2017-07-18 Thread 黄朝阳
Ryabinin; linux...@kvack.org; linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] mm/vmalloc: terminate searching since one node found On 07/18/2017 04:31 PM, Zhaoyang Huang (黄朝阳) wrote: > > It is no need to find the very beginning of the area within > alloc_vmap_area, which can be done b

Re: [PATCH v3] mm/vmalloc: terminate searching since one node found

2017-07-18 Thread zijun_hu
On 07/18/2017 04:31 PM, Zhaoyang Huang (黄朝阳) wrote: > > It is no need to find the very beginning of the area within > alloc_vmap_area, which can be done by judging each node during the process > it seems the original code is wrote to achieve the following two purposes : A, the result vamp_area

Re: [PATCH v3] mm/vmalloc: terminate searching since one node found

2017-07-18 Thread zijun_hu
On 07/18/2017 04:31 PM, Zhaoyang Huang (黄朝阳) wrote: > > It is no need to find the very beginning of the area within > alloc_vmap_area, which can be done by judging each node during the process > it seems the original code is wrote to achieve the following two purposes : A, the result vamp_area

[PATCH v3] mm/vmalloc: terminate searching since one node found

2017-07-18 Thread Zhaoyang Huang
It is no need to find the very beginning of the area within alloc_vmap_area, which can be done by judging each node during the process For current approach, the worst case is that the starting node which be found for searching the 'vmap_area_list' is close to the 'vstart', while the final

[PATCH v3] mm/vmalloc: terminate searching since one node found

2017-07-18 Thread Zhaoyang Huang
It is no need to find the very beginning of the area within alloc_vmap_area, which can be done by judging each node during the process For current approach, the worst case is that the starting node which be found for searching the 'vmap_area_list' is close to the 'vstart', while the final