Re: [PATCH] x86: mm: add_pfn_range_mapped: use meaningful index to teach clean_sort_range()

2013-03-25 Thread Lin Feng
Hi Andrew, On 03/19/2013 02:52 AM, Yinghai Lu wrote: > On Mon, Mar 18, 2013 at 3:21 AM, Lin Feng wrote: >> Since add_range_with_merge() return the max none zero element of the array, >> it's >> suffice to use it to instruct clean_sort_range() to do the sort. Or the >> former >> assignment by

Re: [PATCH] x86: mm: add_pfn_range_mapped: use meaningful index to teach clean_sort_range()

2013-03-25 Thread Lin Feng
Hi Andrew, On 03/19/2013 02:52 AM, Yinghai Lu wrote: On Mon, Mar 18, 2013 at 3:21 AM, Lin Feng linf...@cn.fujitsu.com wrote: Since add_range_with_merge() return the max none zero element of the array, it's suffice to use it to instruct clean_sort_range() to do the sort. Or the former

Re: [PATCH] x86: mm: add_pfn_range_mapped: use meaningful index to teach clean_sort_range()

2013-03-18 Thread Yinghai Lu
On Mon, Mar 18, 2013 at 3:21 AM, Lin Feng wrote: > Since add_range_with_merge() return the max none zero element of the array, > it's > suffice to use it to instruct clean_sort_range() to do the sort. Or the former > assignment by add_range_with_merge() is nonsense because clean_sort_range() >

[PATCH] x86: mm: add_pfn_range_mapped: use meaningful index to teach clean_sort_range()

2013-03-18 Thread Lin Feng
Since add_range_with_merge() return the max none zero element of the array, it's suffice to use it to instruct clean_sort_range() to do the sort. Or the former assignment by add_range_with_merge() is nonsense because clean_sort_range() will produce a accurate number of the sorted array and it

[PATCH] x86: mm: add_pfn_range_mapped: use meaningful index to teach clean_sort_range()

2013-03-18 Thread Lin Feng
Since add_range_with_merge() return the max none zero element of the array, it's suffice to use it to instruct clean_sort_range() to do the sort. Or the former assignment by add_range_with_merge() is nonsense because clean_sort_range() will produce a accurate number of the sorted array and it

Re: [PATCH] x86: mm: add_pfn_range_mapped: use meaningful index to teach clean_sort_range()

2013-03-18 Thread Yinghai Lu
On Mon, Mar 18, 2013 at 3:21 AM, Lin Feng linf...@cn.fujitsu.com wrote: Since add_range_with_merge() return the max none zero element of the array, it's suffice to use it to instruct clean_sort_range() to do the sort. Or the former assignment by add_range_with_merge() is nonsense because