Re: [PATCH] idr: optimize ida_init() to avoid an extra memset

2014-10-29 Thread Lai Jiangshan
On 10/29/2014 10:38 PM, Tejun Heo wrote: > On Wed, Oct 29, 2014 at 05:26:34PM +0800, pang.xun...@zte.com.cn wrote: >> The memset in ida_init() already handles idr, so there's some >> redundancy in the following idr_init(). >> >> This patch removes the memset, and clears ida->free_bitmap instead.

Re: [PATCH] idr: optimize ida_init() to avoid an extra memset

2014-10-29 Thread Tejun Heo
On Wed, Oct 29, 2014 at 05:26:34PM +0800, pang.xun...@zte.com.cn wrote: > The memset in ida_init() already handles idr, so there's some > redundancy in the following idr_init(). > > This patch removes the memset, and clears ida->free_bitmap instead. > > Signed-off-by: pang.xunlei > --- >

Re: [PATCH] idr: optimize ida_init() to avoid an extra memset

2014-10-29 Thread Tejun Heo
On Wed, Oct 29, 2014 at 05:26:34PM +0800, pang.xun...@zte.com.cn wrote: The memset in ida_init() already handles idr, so there's some redundancy in the following idr_init(). This patch removes the memset, and clears ida-free_bitmap instead. Signed-off-by: pang.xunlei pang.xun...@zte.com.cn

Re: [PATCH] idr: optimize ida_init() to avoid an extra memset

2014-10-29 Thread Lai Jiangshan
On 10/29/2014 10:38 PM, Tejun Heo wrote: On Wed, Oct 29, 2014 at 05:26:34PM +0800, pang.xun...@zte.com.cn wrote: The memset in ida_init() already handles idr, so there's some redundancy in the following idr_init(). This patch removes the memset, and clears ida-free_bitmap instead.