Re: [PATCH v2] z3fold: fix the potential encode bug in encod_handle

2016-10-17 Thread zhong jiang
On 2016/10/17 23:30, Dan Streetman wrote: > On Mon, Oct 17, 2016 at 8:48 AM, zhong jiang wrote: >> On 2016/10/17 20:03, Vitaly Wool wrote: >>> Hi Zhong Jiang, >>> >>> On Mon, Oct 17, 2016 at 3:58 AM, zhong jiang wrote: Hi, Vitaly

Re: [PATCH v2] z3fold: fix the potential encode bug in encod_handle

2016-10-17 Thread zhong jiang
On 2016/10/17 23:30, Dan Streetman wrote: > On Mon, Oct 17, 2016 at 8:48 AM, zhong jiang wrote: >> On 2016/10/17 20:03, Vitaly Wool wrote: >>> Hi Zhong Jiang, >>> >>> On Mon, Oct 17, 2016 at 3:58 AM, zhong jiang wrote: Hi, Vitaly About the following patch, is it right?

Re: [PATCH v2] z3fold: fix the potential encode bug in encod_handle

2016-10-17 Thread Dan Streetman
On Mon, Oct 17, 2016 at 8:48 AM, zhong jiang wrote: > > On 2016/10/17 20:03, Vitaly Wool wrote: > > Hi Zhong Jiang, > > > > On Mon, Oct 17, 2016 at 3:58 AM, zhong jiang wrote: > >> Hi, Vitaly > >> > >> About the following patch, is it right? > >> >

Re: [PATCH v2] z3fold: fix the potential encode bug in encod_handle

2016-10-17 Thread Dan Streetman
On Mon, Oct 17, 2016 at 8:48 AM, zhong jiang wrote: > > On 2016/10/17 20:03, Vitaly Wool wrote: > > Hi Zhong Jiang, > > > > On Mon, Oct 17, 2016 at 3:58 AM, zhong jiang wrote: > >> Hi, Vitaly > >> > >> About the following patch, is it right? > >> > >> Thanks > >> zhongjiang > >> On 2016/10/13

Re: [PATCH v2] z3fold: fix the potential encode bug in encod_handle

2016-10-17 Thread zhong jiang
On 2016/10/17 20:03, Vitaly Wool wrote: > Hi Zhong Jiang, > > On Mon, Oct 17, 2016 at 3:58 AM, zhong jiang wrote: >> Hi, Vitaly >> >> About the following patch, is it right? >> >> Thanks >> zhongjiang >> On 2016/10/13 12:02, zhongjiang wrote: >>> From: zhong jiang

Re: [PATCH v2] z3fold: fix the potential encode bug in encod_handle

2016-10-17 Thread zhong jiang
On 2016/10/17 20:03, Vitaly Wool wrote: > Hi Zhong Jiang, > > On Mon, Oct 17, 2016 at 3:58 AM, zhong jiang wrote: >> Hi, Vitaly >> >> About the following patch, is it right? >> >> Thanks >> zhongjiang >> On 2016/10/13 12:02, zhongjiang wrote: >>> From: zhong jiang >>> >>> At present,

Re: [PATCH v2] z3fold: fix the potential encode bug in encod_handle

2016-10-17 Thread zhong jiang
On 2016/10/17 20:03, Vitaly Wool wrote: > Hi Zhong Jiang, > > On Mon, Oct 17, 2016 at 3:58 AM, zhong jiang wrote: >> Hi, Vitaly >> >> About the following patch, is it right? >> >> Thanks >> zhongjiang >> On 2016/10/13 12:02, zhongjiang wrote: >>> From: zhong jiang

Re: [PATCH v2] z3fold: fix the potential encode bug in encod_handle

2016-10-17 Thread zhong jiang
On 2016/10/17 20:03, Vitaly Wool wrote: > Hi Zhong Jiang, > > On Mon, Oct 17, 2016 at 3:58 AM, zhong jiang wrote: >> Hi, Vitaly >> >> About the following patch, is it right? >> >> Thanks >> zhongjiang >> On 2016/10/13 12:02, zhongjiang wrote: >>> From: zhong jiang >>> >>> At present,

Re: [PATCH v2] z3fold: fix the potential encode bug in encod_handle

2016-10-17 Thread Vitaly Wool
Hi Zhong Jiang, On Mon, Oct 17, 2016 at 3:58 AM, zhong jiang wrote: > Hi, Vitaly > > About the following patch, is it right? > > Thanks > zhongjiang > On 2016/10/13 12:02, zhongjiang wrote: >> From: zhong jiang >> >> At present, zhdr->first_num

Re: [PATCH v2] z3fold: fix the potential encode bug in encod_handle

2016-10-17 Thread Vitaly Wool
Hi Zhong Jiang, On Mon, Oct 17, 2016 at 3:58 AM, zhong jiang wrote: > Hi, Vitaly > > About the following patch, is it right? > > Thanks > zhongjiang > On 2016/10/13 12:02, zhongjiang wrote: >> From: zhong jiang >> >> At present, zhdr->first_num plus bud can exceed the BUDDY_MASK >> in

Re: [PATCH v2] z3fold: fix the potential encode bug in encod_handle

2016-10-16 Thread zhong jiang
Hi, Vitaly About the following patch, is it right? Thanks zhongjiang On 2016/10/13 12:02, zhongjiang wrote: > From: zhong jiang > > At present, zhdr->first_num plus bud can exceed the BUDDY_MASK > in encode_handle, it will lead to the the caller handle_to_buddy > return

Re: [PATCH v2] z3fold: fix the potential encode bug in encod_handle

2016-10-16 Thread zhong jiang
Hi, Vitaly About the following patch, is it right? Thanks zhongjiang On 2016/10/13 12:02, zhongjiang wrote: > From: zhong jiang > > At present, zhdr->first_num plus bud can exceed the BUDDY_MASK > in encode_handle, it will lead to the the caller handle_to_buddy > return the error value. > >

[PATCH v2] z3fold: fix the potential encode bug in encod_handle

2016-10-12 Thread zhongjiang
From: zhong jiang At present, zhdr->first_num plus bud can exceed the BUDDY_MASK in encode_handle, it will lead to the the caller handle_to_buddy return the error value. The patch fix the issue by changing the BUDDY_MASK to PAGE_MASK, it will be consistent with

[PATCH v2] z3fold: fix the potential encode bug in encod_handle

2016-10-12 Thread zhongjiang
From: zhong jiang At present, zhdr->first_num plus bud can exceed the BUDDY_MASK in encode_handle, it will lead to the the caller handle_to_buddy return the error value. The patch fix the issue by changing the BUDDY_MASK to PAGE_MASK, it will be consistent with handle_to_z3fold_header. At the