Re: [PATCH] xfs: simplify kmem_{zone_}zalloc

2013-11-03 Thread Gu Zheng
Hi Dave, On 11/02/2013 04:58 AM, Dave Chinner wrote: > On Fri, Nov 01, 2013 at 06:25:11PM +0800, Gu Zheng wrote: >> Introduce flag KM_ZERO which is used to alloc zeroed entry, and convert >> kmem_{zone_}zalloc to call kmem_{zone_}alloc() with KM_ZERO directly, >> in order to avoid the setting to

Re: [PATCH] xfs: simplify kmem_{zone_}zalloc

2013-11-03 Thread Gu Zheng
Hi Dave, On 11/02/2013 04:58 AM, Dave Chinner wrote: On Fri, Nov 01, 2013 at 06:25:11PM +0800, Gu Zheng wrote: Introduce flag KM_ZERO which is used to alloc zeroed entry, and convert kmem_{zone_}zalloc to call kmem_{zone_}alloc() with KM_ZERO directly, in order to avoid the setting to zero

Re: [PATCH] xfs: simplify kmem_{zone_}zalloc

2013-11-01 Thread Dave Chinner
On Fri, Nov 01, 2013 at 06:25:11PM +0800, Gu Zheng wrote: > Introduce flag KM_ZERO which is used to alloc zeroed entry, and convert > kmem_{zone_}zalloc to call kmem_{zone_}alloc() with KM_ZERO directly, > in order to avoid the setting to zero step. > > > Signed-off-by: Gu Zheng > --- >

[PATCH] xfs: simplify kmem_{zone_}zalloc

2013-11-01 Thread Gu Zheng
Introduce flag KM_ZERO which is used to alloc zeroed entry, and convert kmem_{zone_}zalloc to call kmem_{zone_}alloc() with KM_ZERO directly, in order to avoid the setting to zero step. Signed-off-by: Gu Zheng --- fs/xfs/kmem.c | 14 ++ fs/xfs/kmem.h |7 ++- 2 files

[PATCH] xfs: simplify kmem_{zone_}zalloc

2013-11-01 Thread Gu Zheng
Introduce flag KM_ZERO which is used to alloc zeroed entry, and convert kmem_{zone_}zalloc to call kmem_{zone_}alloc() with KM_ZERO directly, in order to avoid the setting to zero step. Signed-off-by: Gu Zheng guz.f...@cn.fujitsu.com --- fs/xfs/kmem.c | 14 ++ fs/xfs/kmem.h |7

Re: [PATCH] xfs: simplify kmem_{zone_}zalloc

2013-11-01 Thread Dave Chinner
On Fri, Nov 01, 2013 at 06:25:11PM +0800, Gu Zheng wrote: Introduce flag KM_ZERO which is used to alloc zeroed entry, and convert kmem_{zone_}zalloc to call kmem_{zone_}alloc() with KM_ZERO directly, in order to avoid the setting to zero step. Signed-off-by: Gu Zheng