Re: [RESEND PATCH 1/1] mm/percpu.c: correct max_distance calculation for pcpu_embed_first_chunk()

2016-09-29 Thread zijun_hu
On 2016/9/29 18:35, Tejun Heo wrote: > Hello, > > On Sat, Sep 24, 2016 at 07:20:49AM +0800, zijun_hu wrote: >> it is error to represent the max range max_distance spanned by all the >> group areas as the offset of the highest group area plus unit size in >> pcpu_embed_first_chunk(), it should equa

Re: [RESEND PATCH 1/1] mm/percpu.c: correct max_distance calculation for pcpu_embed_first_chunk()

2016-09-29 Thread Tejun Heo
Hello, On Sat, Sep 24, 2016 at 07:20:49AM +0800, zijun_hu wrote: > it is error to represent the max range max_distance spanned by all the > group areas as the offset of the highest group area plus unit size in > pcpu_embed_first_chunk(), it should equal to the offset plus the size > of the highest

Re: [RESEND PATCH 1/1] mm/percpu.c: correct max_distance calculation for pcpu_embed_first_chunk()

2016-09-23 Thread zijun_hu
From: zijun_hu it is error to represent the max range max_distance spanned by all the group areas as the offset of the highest group area plus unit size in pcpu_embed_first_chunk(), it should equal to the offset plus the size of the highest group area in order to fix this issue,let us find the h

Re: [PATCH 1/1] mm/percpu.c: correct max_distance calculation for pcpu_embed_first_chunk()

2016-09-23 Thread Tejun Heo
Hello, On Sat, Sep 24, 2016 at 05:16:56AM +0800, zijun_hu wrote: > On 2016/9/24 3:23, Tejun Heo wrote: > > On Sat, Sep 24, 2016 at 02:20:24AM +0800, zijun_hu wrote: > >> From: zijun_hu > >> > >> correct max_distance from (base of the highest group + ai->unit_size) > >> to (base of the highest gro

Re: [PATCH 1/1] mm/percpu.c: correct max_distance calculation for pcpu_embed_first_chunk()

2016-09-23 Thread zijun_hu
On 2016/9/24 3:23, Tejun Heo wrote: > On Sat, Sep 24, 2016 at 02:20:24AM +0800, zijun_hu wrote: >> From: zijun_hu >> >> correct max_distance from (base of the highest group + ai->unit_size) >> to (base of the highest group + the group size) >> >> Signed-off-by: zijun_hu > > Nacked-by: Tejun Heo

Re: [PATCH 1/1] mm/percpu.c: correct max_distance calculation for pcpu_embed_first_chunk()

2016-09-23 Thread Tejun Heo
On Sat, Sep 24, 2016 at 02:20:24AM +0800, zijun_hu wrote: > From: zijun_hu > > correct max_distance from (base of the highest group + ai->unit_size) > to (base of the highest group + the group size) > > Signed-off-by: zijun_hu Nacked-by: Tejun Heo Thanks. -- tejun

[PATCH 1/1] mm/percpu.c: correct max_distance calculation for pcpu_embed_first_chunk()

2016-09-23 Thread zijun_hu
From: zijun_hu correct max_distance from (base of the highest group + ai->unit_size) to (base of the highest group + the group size) Signed-off-by: zijun_hu --- mm/percpu.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/mm/percpu.c b/mm/percpu.c index fcaaac